mac80211: How to properly issue a channel switch
Hello,
(using kernel version 3.14 - mptcp-0.89, to be more accurate)
I am looking for a proper/correct way to request a channel switch from the mac80211 level.
Quoted 1 line
From what I managed to gather:
- a struct cfg80211_chan_def needs to be filled in
- then passed to struct ieee80211_local, specific to our device (ath9k, in my case)
- then call ieee80211_hw_config (local, IEEE80211_CONF_CHANGE_CHANNEL), which will actually configure the device and switch the channel
However, after setting the channel parameters (via local->_oper_chandef, which is discouraged, as I have noted) I get a warning from nl80211 (nl80211_send_chandef) regarding chandef validity (the values center_freq1, control_freq and width depend one on another, as seen in cfg80211_chandef_valid, and the standard, of course).
Thank you for your time,
Vladimir