]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] bcm43xx: Fix array overrun in bcm43xx_geo_init
authorMichael Buesch <mb@bu3sch.de>
Fri, 5 May 2006 15:23:51 +0000 (17:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 5 May 2006 20:55:23 +0000 (16:55 -0400)
commit869aaab1812c4212e65fb181e94b824cf49f9509
tree224829a8847e7aff4bd001de972123f4cd0fbeb0
parentf9f7b9602ecb66f55718d6d1afa3e2b1e721b22d
[PATCH] bcm43xx: Fix array overrun in bcm43xx_geo_init

The problem here is that the bcm34xx driver and the ieee80211
stack do not agree on what channels are possible for 802.11a.
The ieee80211 stack only wants channels between 34 and 165, while
the bcm43xx driver accepts anything from 0 to 200. I made the
bcm43xx driver comply with the ieee80211 stack expectations, by
using the proper constants.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
[mb]: Reduce stack usage by kzalloc-ing ieee80211_geo

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/bcm43xx/bcm43xx_main.c
drivers/net/wireless/bcm43xx/bcm43xx_main.h