Commit 201706ac authored by Tomas Winkler's avatar Tomas Winkler Committed by John W. Linville

iwlwifi: enable base band calibration in 5000 HW

This patch adds base band calibration support.
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 83dde8c9
...@@ -475,6 +475,9 @@ static void iwl5000_rx_calib_result(struct iwl_priv *priv, ...@@ -475,6 +475,9 @@ static void iwl5000_rx_calib_result(struct iwl_priv *priv,
case IWL_PHY_CALIBRATE_TX_IQ_PERD_CMD: case IWL_PHY_CALIBRATE_TX_IQ_PERD_CMD:
index = IWL_CALIB_TX_IQ_PERD; index = IWL_CALIB_TX_IQ_PERD;
break; break;
case IWL_PHY_CALIBRATE_BASE_BAND_CMD:
index = IWL_CALIB_BASE_BAND;
break;
default: default:
IWL_ERROR("Unknown calibration notification %d\n", IWL_ERROR("Unknown calibration notification %d\n",
hdr->op_code); hdr->op_code);
...@@ -841,8 +844,9 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv) ...@@ -841,8 +844,9 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv)
priv->hw_params.calib_init_cfg = priv->hw_params.calib_init_cfg =
BIT(IWL_CALIB_XTAL) | BIT(IWL_CALIB_XTAL) |
BIT(IWL_CALIB_LO) | BIT(IWL_CALIB_LO) |
BIT(IWL_CALIB_TX_IQ) | BIT(IWL_CALIB_TX_IQ) |
BIT(IWL_CALIB_TX_IQ_PERD); BIT(IWL_CALIB_TX_IQ_PERD) |
BIT(IWL_CALIB_BASE_BAND);
break; break;
case CSR_HW_REV_TYPE_5150: case CSR_HW_REV_TYPE_5150:
priv->hw_params.calib_init_cfg = 0; priv->hw_params.calib_init_cfg = 0;
......
...@@ -695,6 +695,7 @@ enum iwl_calib { ...@@ -695,6 +695,7 @@ enum iwl_calib {
IWL_CALIB_LO, IWL_CALIB_LO,
IWL_CALIB_TX_IQ, IWL_CALIB_TX_IQ,
IWL_CALIB_TX_IQ_PERD, IWL_CALIB_TX_IQ_PERD,
IWL_CALIB_BASE_BAND,
IWL_CALIB_MAX IWL_CALIB_MAX
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment