aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwl8k.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2009-10-22 14:21:38 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-11-06 16:54:40 -0500
commit5e4cf166f4a9801ea9ca1bab210d763d27538de6 (patch)
treed1bf0561f28e820024fb79eac0a8aeb0d1d7b9f9 /drivers/net/wireless/mwl8k.c
parentc0adae2caa1a152c6ec691c5d1e815e47dac2a0c (diff)
mwl8k: add AP firmware handling to ->start()
Signed-off-by: Lennert Buytenhek <buytenh@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.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 19c6bea1bc48..1c4114f8d317 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -2713,12 +2713,17 @@ static int mwl8k_start(struct ieee80211_hw *hw)
2713 if (!rc) { 2713 if (!rc) {
2714 rc = mwl8k_cmd_802_11_radio_enable(hw); 2714 rc = mwl8k_cmd_802_11_radio_enable(hw);
2715 2715
2716 if (!rc) 2716 if (!priv->ap_fw) {
2717 rc = mwl8k_cmd_set_pre_scan(hw); 2717 if (!rc)
2718 rc = mwl8k_enable_sniffer(hw, 0);
2718 2719
2719 if (!rc) 2720 if (!rc)
2720 rc = mwl8k_cmd_set_post_scan(hw, 2721 rc = mwl8k_cmd_set_pre_scan(hw);
2721 "\x00\x00\x00\x00\x00\x00"); 2722
2723 if (!rc)
2724 rc = mwl8k_cmd_set_post_scan(hw,
2725 "\x00\x00\x00\x00\x00\x00");
2726 }
2722 2727
2723 if (!rc) 2728 if (!rc)
2724 rc = mwl8k_cmd_setrateadaptmode(hw, 0); 2729 rc = mwl8k_cmd_setrateadaptmode(hw, 0);
@@ -2726,9 +2731,6 @@ static int mwl8k_start(struct ieee80211_hw *hw)
2726 if (!rc) 2731 if (!rc)
2727 rc = mwl8k_set_wmm(hw, 0); 2732 rc = mwl8k_set_wmm(hw, 0);
2728 2733
2729 if (!rc)
2730 rc = mwl8k_enable_sniffer(hw, 0);
2731
2732 mwl8k_fw_unlock(hw); 2734 mwl8k_fw_unlock(hw);
2733 } 2735 }
2734 2736