summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYogesh Ashok Powar <yogeshp@marvell.com>2013-01-25 16:20:42 +0530
committerJohn W. Linville <linville@tuxdriver.com>2013-01-30 15:06:53 -0500
commit41bf911910fc41996878afc679c352d89477d626 (patch)
tree4e9d37b59bdabc826ef74c8e6dd754982784a328
parentd994a1c867ed301aaad26f769885d78e599e1daf (diff)
downloadop-kernel-dev-41bf911910fc41996878afc679c352d89477d626.zip
op-kernel-dev-41bf911910fc41996878afc679c352d89477d626.tar.gz
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>
-rw-r--r--drivers/net/wireless/mwl8k.c6
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);
}
OpenPOWER on IntegriCloud