aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-04-29 07:43:04 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-05-10 18:08:57 -0400
commiteafdfbd32aa9fcaf17733c04d5eb071af3b1ff47 (patch)
tree6c3ed47f5878cfafe169fa40463a2b09126ea5df /drivers/net/wireless
parent93286db50130754d9655c457ad0e11cb8f37a10f (diff)
iwlagn: use vif->type to check station
We need not check iw_mode, since we have the vif pointer available. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 97184e14a775..7c3363ab561a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -3223,7 +3223,7 @@ static int iwlagn_mac_sta_add(struct ieee80211_hw *hw,
3223{ 3223{
3224 struct iwl_priv *priv = hw->priv; 3224 struct iwl_priv *priv = hw->priv;
3225 struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; 3225 struct iwl_station_priv *sta_priv = (void *)sta->drv_priv;
3226 bool is_ap = priv->iw_mode == NL80211_IFTYPE_STATION; 3226 bool is_ap = vif->type == NL80211_IFTYPE_STATION;
3227 int ret; 3227 int ret;
3228 u8 sta_id; 3228 u8 sta_id;
3229 3229