]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
cfg80211: fix 2 GHz subband calculation for country IEs
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 7 Jan 2010 22:24:55 +0000 (17:24 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 14 Jan 2010 23:16:53 +0000 (18:16 -0500)
commite99c7cd57b2481ee36b2338040e3ce1cd17e0763
treec4571af4478a1b020702b361aec4bd6e34f4ec58
parent6021e08db47386507108a475e6c820a7006a4632
cfg80211: fix 2 GHz subband calculation for country IEs

Country IEs triplets are getting an extra channel with
the current count. This does not affect regulatory because
we always took the intersection between what the AP gave
and what CRDA believed is correct.

This however does fix processing some Country IEs with multiple
sequential 2 GHz triplets. Since our parser and the spec mandates
all channels be monitonically increasing we would drop the IE after
noticing the second triplet begins on a channel already processed.
APs that send these type of country IEs seems rare though.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c