cfg80211: make regulatory_hint_11d() band specific
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 15 Jan 2010 01:08:20 +0000 (20:08 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Jan 2010 22:02:06 +0000 (17:02 -0500)
commit84920e3e47f654a22b540606fb8c1ab90b870942
tree2df8748b39b9cca53cfd2704487f6183b09d26aa
parent93895757df4ebe22c98b9128b98ebf8cec972c60
cfg80211: make regulatory_hint_11d() band specific

In practice APs do not send country IE channel triplets for channels
the AP is not operating on and if they were to do so they would have
to use the regulatory extension which we currently do not process.
No AP has been seen in practice that does this though so just drop
those country IEs.

Additionally it has been noted the first series of country IE
channels triplets are specific to the band the AP sends. Propagate
the band on which the country IE was found on reject the country
IE then if the triplets are ever oustide of the band.

Although we now won't process country IE information with multiple
band information we leave the intersection work as is as it is
technically possible for someone to want to eventually process these
type of country IEs with regulatory extensions.

Cc: Jouni Malinen <jouni.malinen@atheros.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c
net/wireless/reg.h
net/wireless/sme.c