]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: fix reading of FW IE capabilities
authorKalle Valo <kvalo@qca.qualcomm.com>
Tue, 13 Dec 2011 12:51:58 +0000 (14:51 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 13 Dec 2011 13:03:48 +0000 (15:03 +0200)
commit561eb96ef38b11a34cc93a1b85c89d7a22029eaa
tree283dbcbc7ae065b4704538bb0a868e62fdd9de1d
parent720b763f721a971d465f60d37f7dac9b95129cd2
ath6kl: fix reading of FW IE capabilities

For some strange reason I used ALIGN() to calculate index to the
buffer. That is totally bogus and wouldn't work when it tried to read
the second bit. Fix it by removing the ALIGN() altogether.

Also check that ie_len is not too short.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/init.c