提交 4f0642a6 编写于 作者: W Wey-Yi Guy

iwlagn: Sanity check for 11n capability

Make sure when we say 11n enable, we really support it.
Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
上级 1f8bf039
......@@ -113,6 +113,11 @@ int iwl_eeprom_check_sku(struct iwl_priv *priv)
if (!priv->cfg->sku) {
/* not using sku overwrite */
priv->cfg->sku = iwl_eeprom_query16(priv, EEPROM_SKU_CAP);
if (priv->cfg->sku & EEPROM_SKU_CAP_11N_ENABLE &&
!priv->cfg->ht_params) {
IWL_ERR(priv, "Invalid 11n configuration\n");
return -EINVAL;
}
}
if (!priv->cfg->sku) {
IWL_ERR(priv, "Invalid device sku\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册