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)
commit089ab7a5af3250bdc0a4088785b1a268da06417d
treeee9b1945f712dcbdc9aa18e49cdfb70d12842ff2
parentd7bf4b4aba056f3e7eb88a3d8d45ee1a6f4873e9
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