]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
wcn36xx: Fix WEP encryption
authorLoic Poulain <loic.poulain@linaro.org>
Wed, 20 Jun 2018 07:58:00 +0000 (09:58 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Jun 2018 11:59:17 +0000 (14:59 +0300)
commit216da1287a8a9e8a2dbef59c8bfc2f4dda11b92a
tree91c5c2039085608c1ef406f17606098f7d4b1ced
parente3160542ab488cff4e12c81066c51928c08e384d
wcn36xx: Fix WEP encryption

In case of WEP encryption, driver has to configure shared key for
associated station(s). Note that sta pointer is NULL in case of non
pairwise key, causing NULL pointer dereference with existing code
(sta_priv->is_data_encrypted). Fix this by using associated sta list
instead. This enables WEP support as client, WEP AP is non-functional.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/smd.c