]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: remove ath10k_chanctx struct
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 3 Jun 2015 10:16:55 +0000 (12:16 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 9 Jun 2015 10:46:53 +0000 (13:46 +0300)
commitaddb585b2d8130ebd312a675303ceb1346f3fbc7
treeee9b1945f712dcbdc9aa18e49cdfb70d12842ff2
parent5c9002e6d4f6fa32670764d3bebaf6005342aeab
ath10k: remove ath10k_chanctx struct

In practice there's no point in having a copy of
chanctx_conf.

Most of the time the channel pointer (and band
along with it) is accessed and this can't change
after a chanctx is created because switching is
done using explicit chanctx swapping via
switch_vif_chanctx().

The only thing that can change within a
chanctx_conf and is used by the driver is
radar_enabled and channel width. These are however
always accessed in adequate mac80211 callback
context which guarantees safe access to the
chanctx data.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/mac.c