• Michal Kazior's avatar
    ath10k: remove ath10k_chanctx struct · 089ab7a5
    Michal Kazior authored
    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: default avatarMichal Kazior <michal.kazior@tieto.com>
    Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
    089ab7a5
core.h 17.2 KB