mac80211: fix internal scan request
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 2 Nov 2009 10:31:51 +0000 (11:31 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Nov 2009 23:44:52 +0000 (18:44 -0500)
commitc327d96759ac134384114830e19ded80e29fdcc4
treeeb732010f645f90763735a42eebaaca3bce7f61f
parent450aae3d7b60a970f266349a837dfb30a539198b
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>
net/mac80211/main.c