linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mac80211: How to properly issue a channel switch
@ 2015-05-19 16:18 Vladimir DIACONESCU
  0 siblings, 0 replies; only message in thread
From: Vladimir DIACONESCU @ 2015-05-19 16:18 UTC (permalink / raw)
  To: linux-wireless

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.

>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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-19 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 16:18 mac80211: How to properly issue a channel switch Vladimir DIACONESCU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).