Linux wireless drivers development
 help / color / mirror / Atom feed
* Change channel bandwidth without iw command
@ 2014-10-22 10:14 Okhwan Lee
  2014-10-22 10:40 ` Michal Kazior
  0 siblings, 1 reply; 7+ messages in thread
From: Okhwan Lee @ 2014-10-22 10:14 UTC (permalink / raw)
  To: ath10k@lists.infradead.org; +Cc: linux-wireless

Hi,

We are trying to implement a protocol to evaluate the performance our
algorithm using QCA9880.

To implement our protocol, a receiver have to change the bandwidth
when a Action frame (what we define) is successfully received.
We know that the QCA9880 can change bandwidth by using iw command in
monitor mode.
So, we use similar function path used by "iw dev set freq ..."
When the receiver detects the reception of the Action frame we call
"ieee80211_set_monitor_channel" at the end of ieee80211_rx as follows:

/*************** net/mac80211/rx.c ******************/

// receive action frame, change bandwidth 80 -> 20

                rtnl_lock(); //lock rtnetlink used in pre_doit of nl80211
                chandef = local->monitor_chandef; // copy current chandef
                chandef.width = NL80211_CHAN_WIDTH_20; // set bandwidth
                chandef.center_freq1 = 5180; // set center freq...
                ieee80211_set_monitor_channel(wiphy, &chandef);
                rtnl_unlock();

/********************************************************/

However, the receiver invokes kernel panic when receives the Action frame.
As fas as we know, the panic is occurred in ath10k_config_chan of
ath10k device driver.
To the best our knowledge, our implementation exploits same function
path of iw command in nl80211, cfg80211, mac80211 and ath10k.
Moreover, we confirm that the input parameters (wiphy, chandef) in our
implementation are identical to the parameters used by iw command.

Is there any reason why we cannot change bandwidth?
Of course, iw command work correctly.

If you have any idea to solve this, please let me know.

Thanks a lot for your reading.

Sincerely yours,

Okhwan Lee , Ph.D. student

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-10-26  9:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-22 10:14 Change channel bandwidth without iw command Okhwan Lee
2014-10-22 10:40 ` Michal Kazior
2014-10-23  6:57   ` Okhwan Lee
2014-10-24  7:49     ` Michal Kazior
2014-10-24 11:30       ` Okhwan Lee
2014-10-24 11:38         ` Michal Kazior
2014-10-26  9:10           ` Okhwan Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox