ath9k: Fix a NULL pointer dereference in ath_rate_get
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 17 Dec 2008 11:30:31 +0000 (13:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Dec 2008 20:23:44 +0000 (15:23 -0500)
commitf66000f7a39769b0ce2355fca13c40ac2f1c39db
tree5c23d21f5d54d90be8545c59f627e2448d3478dd
parent91f39e8eea725347b6a82d1e35e512ec8b298b0b
ath9k: Fix a NULL pointer dereference in ath_rate_get

It looks like mac80211 may try to send unicast frames to a STA that
does not have a STA entry. We need to make sure that that is caught in
the rate control code before dereferencing STA data.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/rc.c