linux/drivers/net/wireless/ath/wcn36xx
Daniel Mack 0fc8bb50bb wcn36xx: pass correct BSS index when deleting BSS keys
The firmware message to delete BSS keys expects a BSS index to be passed.
This field is currently hard-coded to 0. Fix this by passing in the index
we received from the firmware when the BSS was configured.

The encryption type in that message also needs to be set to what was used
when the key was set, so the assignment of vif_priv->encrypt_type is now
done after the firmware command was sent. This reportedly fixes the
following error in AP mode:

  wcn36xx: ERROR hal_remove_bsskey response failed err=6

Also, AFAIU, when a BSS is deleted, the firmware apparently drops all the
keys associated with it. Trying to remove the key explicitly afterwards
will hence lead to the following message:

  wcn36xx: ERROR hal_remove_bsskey response failed err=16

This is now suppressed with an extra check for the BSS index validity.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-04-24 08:57:05 +03:00
..
debug.c wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
debug.h
dxe.c wcn36xx: use READ_ONCE() to access desc->ctrl 2018-04-19 19:22:43 +03:00
dxe.h wcn36xx: Remove useless skb spinlock 2018-04-10 17:39:50 +03:00
hal.h wcn36xx: Add hardware scan offload support 2017-12-14 17:28:59 +02:00
Kconfig soc: qcom: smd: Transition client drivers from smd to rpmsg 2017-03-28 17:58:07 -07:00
main.c wcn36xx: pass correct BSS index when deleting BSS keys 2018-04-24 08:57:05 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pmc.c wcn36xx: Fix dynamic power saving 2018-01-04 18:41:48 +02:00
pmc.h
smd.c wcn36xx: pass correct BSS index when deleting BSS keys 2018-04-24 08:57:05 +03:00
smd.h wcn36xx: pass correct BSS index when deleting BSS keys 2018-04-24 08:57:05 +03:00
txrx.c wcn36xx: don't keep reference to skb if transmission failed 2018-04-10 17:34:14 +03:00
txrx.h
wcn36xx.h wcn36xx: reduce verbosity of drivers messages 2018-03-26 18:11:23 +03:00