linux/drivers/net/wireless/ath/wcn36xx
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
..
debug.c
debug.h
dxe.c wcn36xx: Fix inconsistent indenting 2021-06-14 18:20:21 +03:00
dxe.h
hal.h wcn36xx: Add GTK offload info to WoWLAN resume 2021-06-14 18:18:15 +03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
main.c wcn36xx: Move hal_buf allocation to devm_kmalloc in probe 2021-06-14 18:27:07 +03:00
Makefile
pmc.c wcn36xx: Advertise beacon filtering support in bmps 2020-10-01 22:34:04 +03:00
pmc.h
smd.c wcn36xx: Add host resume request support 2021-06-14 18:18:17 +03:00
smd.h wcn36xx: Add host resume request support 2021-06-14 18:18:17 +03:00
testmode_i.h
testmode.c
testmode.h wcn36xx: Replace zero-length array with flexible-array 2020-05-13 19:03:06 +03:00
txrx.c wcn36xx: Specify ieee80211_rx_status.nss 2020-09-02 11:48:26 +03:00
txrx.h
wcn36xx.h wcn36xx: Add set_rekey_data callback 2021-06-14 18:18:14 +03:00