cfg80211: fix nl80211 frequency handling
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 8 Dec 2008 11:39:04 +0000 (12:39 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 12 Dec 2008 18:48:25 +0000 (13:48 -0500)
commit306d6112f9b396ed237305036f8e889f8aa964b5
treee84748fb374e84bd16d943c2615480a08c96be3d
parent7ba1c04ed727a70df2dc63464232c0ec906ad67d
cfg80211: fix nl80211 frequency handling

Fix two small bugs with HT frequency setting:
 * HT is accepted even when the driver is incapable
 * HT40 is accepted when the driver cannot do 40 MHz
 (both on the selected band)

Also simplify the code a little.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c