aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-mac80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-15 16:26:53 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-09 16:37:23 -0400
commita18f61bc9d18890b0d3814f92cdd5dcda934f20a (patch)
tree9f6c2ef07376007715c1ef8f54e39e50c6b900e3 /drivers/net/wireless/iwlwifi/iwl-mac80211.c
parent9eae88fa9a02e31af69a215beaa5e1194da3a5a1 (diff)
iwlwifi: move valid_contexts to priv
No other component is accessing it any more, so it can move to the correct place in priv. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-mac80211.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-mac80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
index 1bd021a24a8a..b0c40c8a7fdb 100644
--- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c
+++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
@@ -1006,7 +1006,7 @@ static int iwlagn_mac_remain_on_channel(struct ieee80211_hw *hw,
1006 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_PAN]; 1006 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_PAN];
1007 int err = 0; 1007 int err = 0;
1008 1008
1009 if (!(priv->shrd->valid_contexts & BIT(IWL_RXON_CTX_PAN))) 1009 if (!(priv->valid_contexts & BIT(IWL_RXON_CTX_PAN)))
1010 return -EOPNOTSUPP; 1010 return -EOPNOTSUPP;
1011 1011
1012 if (!(ctx->interface_modes & BIT(NL80211_IFTYPE_P2P_CLIENT))) 1012 if (!(ctx->interface_modes & BIT(NL80211_IFTYPE_P2P_CLIENT)))
@@ -1094,7 +1094,7 @@ static int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw)
1094{ 1094{
1095 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); 1095 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw);
1096 1096
1097 if (!(priv->shrd->valid_contexts & BIT(IWL_RXON_CTX_PAN))) 1097 if (!(priv->valid_contexts & BIT(IWL_RXON_CTX_PAN)))
1098 return -EOPNOTSUPP; 1098 return -EOPNOTSUPP;
1099 1099
1100 IWL_DEBUG_MAC80211(priv, "enter\n"); 1100 IWL_DEBUG_MAC80211(priv, "enter\n");