mac80211: only create default STA interface if supported
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 8 Dec 2008 23:10:30 +0000 (00:10 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 12 Dec 2008 18:59:43 +0000 (13:59 -0500)
commit8dffff216fcac4f79078478085e86d68db64922e
treea264aa2d10538004d8c5614e69c6fe0c6c76f5b0
parent0f202aa2e1e1db1d20da9bcc3f5ad43c5a22d2d5
mac80211: only create default STA interface if supported

Drivers will support this, obviously, but this forces them to
set it up properly.

(This includes the fix posted as "mac80211: fix ifmodes check" and
tested in wireless-testing by Hin-Tak and others. -- JWL)

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Hin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c