]> 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)
commit0d15cdb38d7f92df61e8a575c092f4b3520b3f94
treeee9b1945f712dcbdc9aa18e49cdfb70d12842ff2
parentce28853c598a002b5b11b5eb03c9f186c5bd00ec
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