diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2013-01-25 11:50:42 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-30 21:06:53 +0100 |
commit | 41bf911910fc41996878afc679c352d89477d626 (patch) | |
tree | 4e9d37b59bdabc826ef74c8e6dd754982784a328 /drivers/net/wireless/mwl8k.c | |
parent | mwl8k: Add/Del self entry for AP interface only (diff) | |
download | linux-41bf911910fc41996878afc679c352d89477d626.tar.xz linux-41bf911910fc41996878afc679c352d89477d626.zip |
mwl8k: Choose interface specific calls on vif type
Choose interface specific function calls
based on interface type instead of
firmware types.
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Nishant Sarmukadam <nishants@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 55f1e9d96ca9..a9d5c09974de 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -4984,11 +4984,9 @@ static void mwl8k_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *info, u32 changed) { - struct mwl8k_priv *priv = hw->priv; - - if (!priv->ap_fw) + if (vif->type == NL80211_IFTYPE_STATION) mwl8k_bss_info_changed_sta(hw, vif, info, changed); - else + if (vif->type == NL80211_IFTYPE_AP) mwl8k_bss_info_changed_ap(hw, vif, info, changed); } |