Skip to content

Commit

Permalink
mac80211: fix internal scan request
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Nov 4, 2009
1 parent 450aae3 commit c327d96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
i++;
}
}
local->int_scan_req->n_channels = i;

local->network_latency_notifier.notifier_call =
ieee80211_max_network_latency;
Expand Down

0 comments on commit c327d96

Please sign in to comment.