mac80211: fix crash with single-queue drivers
authorJohannes Berg <johannes.berg@intel.com>
Wed, 4 Jul 2012 10:49:59 +0000 (12:49 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 6 Jul 2012 13:26:58 +0000 (15:26 +0200)
Larry (and some others I think) reported that with
single-queue drivers mac80211 crashes when waking
the queues. This happens because we allocate just
a single queue for each virtual interface in case
the driver doesn't have at least 4 queues, but the
code stopping/waking the virtual interface queues
wasn't taking this into account.

Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

No differences found