linux/drivers/net/wireless/ath
Bryan O'Donoghue ef48667557 wcn36xx: Move hal_buf allocation to devm_kmalloc in probe
Right now wcn->hal_buf is allocated in wcn36xx_start(). This is a problem
since we should have setup all of the buffers we required by the time
ieee80211_register_hw() is called.

struct ieee80211_ops callbacks may run prior to mac_start() and therefore
wcn->hal_buf must be initialized.

This is easily remediated by moving the allocation to probe() taking the
opportunity to tidy up freeing memory by using devm_kmalloc().

Fixes: 8e84c25821 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware")
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210605173347.2266003-1-bryan.odonoghue@linaro.org
2021-06-14 18:27:07 +03:00
..
ar5523
ath5k
ath6kl ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd() 2021-05-13 18:32:15 +02:00
ath9k ath9k: Fix kernel NULL pointer dereference during ath_reset_internal() 2021-06-12 13:23:56 +03:00
ath10k ath10k: remove unused more_frags variable 2021-06-12 13:38:26 +03:00
ath11k ath11k: don't call ath11k_pci_set_l1ss for WCN6855 2021-06-12 13:31:05 +03:00
carl9170 wireless: carl9170: fix LEDS build errors & warnings 2021-06-12 13:37:46 +03:00
wcn36xx wcn36xx: Move hal_buf allocation to devm_kmalloc in probe 2021-06-14 18:27:07 +03:00
wil6210 wil6210: wmi: Remove useless code 2021-04-18 09:36:16 +03:00
ath.h
debug.c
dfs_pattern_detector.c
dfs_pattern_detector.h
dfs_pri_detector.c
dfs_pri_detector.h
hw.c
Kconfig
key.c
main.c
Makefile
reg.h
regd_common.h
regd.c
regd.h
spectral_common.h
trace.c
trace.h