diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-11-02 05:31:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-04 18:44:52 -0500 |
commit | c327d96759ac134384114830e19ded80e29fdcc4 (patch) | |
tree | eb732010f645f90763735a42eebaaca3bce7f61f /net/mac80211/main.c | |
parent | 450aae3d7b60a970f266349a837dfb30a539198b (diff) |
mac80211: fix internal scan request
The internal scan request mac80211 uses to
scan for IBSS networks was set up to contain
no channels at all because n_channels wasn't
set after setting up the channels array. Fix
this to properly scan for networks.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 4e80213d6c77..9e6703ff7fbb 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -901,6 +901,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
901 | i++; | 901 | i++; |
902 | } | 902 | } |
903 | } | 903 | } |
904 | local->int_scan_req->n_channels = i; | ||
904 | 905 | ||
905 | local->network_latency_notifier.notifier_call = | 906 | local->network_latency_notifier.notifier_call = |
906 | ieee80211_max_network_latency; | 907 | ieee80211_max_network_latency; |