ath9k_hw: Fix MCI init for AGC calibration
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 7 Jan 2013 08:23:47 +0000 (13:53 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Jan 2013 19:37:10 +0000 (14:37 -0500)
commitdfcca60b884185cc1e12de932156bd806d896747
tree3e71464c9cba105d6fbb489a6bdf87f07f1f419b
parent4656b8f680b4405d68a84e6223b1709b3e1944a6
ath9k_hw: Fix MCI init for AGC calibration

When AGC calibration is to be done, a GPM message with the
payload, MCI_GPM_WLAN_CAL_REQ has to be sent. Currently this falls
within the IQ-CAL code block which is incorrect. Fix this by using
a separate variable to decide when IQ-CAL is to be done separately
and call ar9003_mci_init_cal_req correctly.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_calib.c