aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-05-05 16:14:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-05 16:14:16 -0400
commit83163244f845c296a118ce85c653872dbff6abfe (patch)
treece2eac695a1c198f23d537e20ed86c16ece21f7e /net/mac80211/main.c
parent0a12761bcd5646691c5d16dd93df84d1b8849285 (diff)
parentadfba3c7c026a6a5560d2a43fefc9b198cb74462 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts: drivers/net/wireless/libertas_tf/cmd.c drivers/net/wireless/libertas_tf/main.c
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 011ee85bcd57..bd632e1ee2c5 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -442,7 +442,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
442 struct ieee80211_local *local = hw_to_local(hw); 442 struct ieee80211_local *local = hw_to_local(hw);
443 int result; 443 int result;
444 enum ieee80211_band band; 444 enum ieee80211_band band;
445 int channels, i, j, max_bitrates; 445 int channels, max_bitrates;
446 bool supp_ht; 446 bool supp_ht;
447 static const u32 cipher_suites[] = { 447 static const u32 cipher_suites[] = {
448 WLAN_CIPHER_SUITE_WEP40, 448 WLAN_CIPHER_SUITE_WEP40,
@@ -572,6 +572,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
572 572
573 local->hw.conf.listen_interval = local->hw.max_listen_interval; 573 local->hw.conf.listen_interval = local->hw.max_listen_interval;
574 574
575 local->hw.conf.dynamic_ps_forced_timeout = -1;
576
575 result = sta_info_start(local); 577 result = sta_info_start(local);
576 if (result < 0) 578 if (result < 0)
577 goto fail_sta_info; 579 goto fail_sta_info;
@@ -606,21 +608,6 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
606 608
607 ieee80211_led_init(local); 609 ieee80211_led_init(local);
608 610
609 /* alloc internal scan request */
610 i = 0;
611 local->int_scan_req->ssids = &local->scan_ssid;
612 local->int_scan_req->n_ssids = 1;
613 for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
614 if (!hw->wiphy->bands[band])
615 continue;
616 for (j = 0; j < hw->wiphy->bands[band]->n_channels; j++) {
617 local->int_scan_req->channels[i] =
618 &hw->wiphy->bands[band]->channels[j];
619 i++;
620 }
621 }
622 local->int_scan_req->n_channels = i;
623
624 local->network_latency_notifier.notifier_call = 611 local->network_latency_notifier.notifier_call =
625 ieee80211_max_network_latency; 612 ieee80211_max_network_latency;
626 result = pm_qos_add_notifier(PM_QOS_NETWORK_LATENCY, 613 result = pm_qos_add_notifier(PM_QOS_NETWORK_LATENCY,