]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
iwlwifi: enable base band calibration in 5000 HW
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 19 Nov 2008 23:32:24 +0000 (15:32 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 26 Nov 2008 14:47:37 +0000 (09:47 -0500)
This patch adds base band calibration support.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-dev.h

index aeb69ee8706f3d83c84d2cc1fcca8a5d9d8f6912..478c5c3674e445d1b74ad04d5cc9bd6b8f821a42 100644 (file)
@@ -475,6 +475,9 @@ static void iwl5000_rx_calib_result(struct iwl_priv *priv,
        case IWL_PHY_CALIBRATE_TX_IQ_PERD_CMD:
                index = IWL_CALIB_TX_IQ_PERD;
                break;
+       case IWL_PHY_CALIBRATE_BASE_BAND_CMD:
+               index = IWL_CALIB_BASE_BAND;
+               break;
        default:
                IWL_ERROR("Unknown calibration notification %d\n",
                          hdr->op_code);
@@ -841,8 +844,9 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv)
                priv->hw_params.calib_init_cfg =
                        BIT(IWL_CALIB_XTAL)             |
                        BIT(IWL_CALIB_LO)               |
-                       BIT(IWL_CALIB_TX_IQ)    |
-                       BIT(IWL_CALIB_TX_IQ_PERD);
+                       BIT(IWL_CALIB_TX_IQ)            |
+                       BIT(IWL_CALIB_TX_IQ_PERD)       |
+                       BIT(IWL_CALIB_BASE_BAND);
                break;
        case CSR_HW_REV_TYPE_5150:
                priv->hw_params.calib_init_cfg = 0;
index 1b305d8d0cc599d27923d2f5e821de6357330498..4da988e0eae05be28853553edd3162c6d84b0572 100644 (file)
@@ -695,6 +695,7 @@ enum iwl_calib {
        IWL_CALIB_LO,
        IWL_CALIB_TX_IQ,
        IWL_CALIB_TX_IQ_PERD,
+       IWL_CALIB_BASE_BAND,
        IWL_CALIB_MAX
 };