]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix crash with WEP in ad-hoc mode
authorFelix Fietkau <nbd@openwrt.org>
Fri, 2 Jul 2010 12:45:22 +0000 (14:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 2 Jul 2010 17:44:38 +0000 (13:44 -0400)
commitfe40547fa268ed85c86c3d8350c71ca5d91c0fbf
tree10c44b13c677caefa9f85b8dff4c85a800782c91
parent1d1f33920824633b3595fc2cbd4b79b47c002134
ath9k: fix crash with WEP in ad-hoc mode

Commit 69dfc81860ec9345809cb153914964ac126d4028 added support for using
multicast key lookup to support per-vif/sta keys for AP and ad-hoc.
Unfortunately, it also introduced a crash in ad-hoc mode when the sta
pointer is NULL, which happens when setting up an interface with WEP
keys. This patch fixes it by falling back to the assigned key index.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Reported-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/common.c