diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2013-01-25 10:50:42 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-30 20:06:53 (GMT) |
commit | 41bf911910fc41996878afc679c352d89477d626 (patch) | |
tree | 4e9d37b59bdabc826ef74c8e6dd754982784a328 /drivers/net | |
parent | d994a1c867ed301aaad26f769885d78e599e1daf (diff) | |
download | linux-41bf911910fc41996878afc679c352d89477d626.tar.xz |
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')
-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 55f1e9d..a9d5c09 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); } |