-: ------------ > 1: 20387a8c7947 wifi: ath11k: forget a key the firmware failed to remove 1: e748cde0dc34 ! 2: eaec413d0675 wifi: ath11k: do not fail down transitions of the station state @@ Commit message ieee80211_del_station+0x1c/0x54 [mac80211] nl80211_del_station+0xf4/0x174 [cfg80211]  - Both paths already warn about the failure, and the removal releases the - host state of the station either way. Return success for every down - transition. + Two of these failures also skip host cleanup. On a non-AP vdev of a + device with vdev_start_delay, a failed early vdev stop returns from + ath11k_mac_station_remove() before the DP peer cleanup and the station + accounting, and ath11k_mac_op_sta_state() then frees the peer with its + rx_tid state still in place. For a non-WME station, a failed RTS/CTS + update returns from ath11k_station_disassoc() before the peer keys are + cleared.  - Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.12-01460-QCAHKSWPL_SILICONZ-1 + Warn and carry on with the host cleanup in both, and return success for + every down transition. + + Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.12-01460  Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Julius Bairaktaris   ## drivers/net/wireless/ath/ath11k/mac.c ## +@@ drivers/net/wireless/ath/ath11k/mac.c: static int ath11k_station_disassoc(struct ath11k *ar, +  + if (!sta->wme) { + arvif->num_legacy_stations--; +- ret = ath11k_recalc_rtscts_prot(arvif); +- if (ret) +- return ret; ++ ath11k_recalc_rtscts_prot(arvif); + } +  + ret = ath11k_clear_peer_keys(arvif, sta->addr); +@@ drivers/net/wireless/ath/ath11k/mac.c: static int ath11k_mac_station_remove(struct ath11k *ar, + arvif->is_started && + arvif->vdev_type != WMI_VDEV_TYPE_AP) { + ret = ath11k_mac_stop_vdev_early(ar->hw, vif); +- if (ret) { ++ if (ret) + ath11k_warn(ab, "failed to do early vdev stop: %d\n", ret); +- return ret; +- } + } +  + ath11k_dp_peer_cleanup(ar, arvif->vdev_id, sta->addr);  @@ drivers/net/wireless/ath/ath11k/mac.c: static int ath11k_mac_op_sta_state(struct ieee80211_hw *hw, sta->addr); }