Linux wireless drivers development
 help / color / mirror / Atom feed
From: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
To: <linux-wireless@vger.kernel.org>
Subject: Q: offchannel operations
Date: Thu, 10 Jan 2013 10:43:04 +0200	[thread overview]
Message-ID: <1690590.qQcKllxmg2@lx-vladimir> (raw)

Hi,

There are 2 similar operations in the struct cfg80211_ops:
remain_on_channel() and mgmt_tx(). Actually, mgmt_tx() when called for
off-channel operation, is the same as remain_on_channel() except it
transmits frame at the beginning.

What I am interesting about, is notifications to cfg80211. For
remain_on_channel(), there are 2: cfg80211_ready_on_channel() when
channel tuned, and cfg80211_remain_on_channel_expired() when tuned off
requested channel. In contrast, if mgmt_tx() called for off-channel
with duration, 2 above notifications are not used. Instead, only
cfg80211_mgmt_tx_status() called after tx.

My question is why don't mgmt_tx() call cfg80211_ready_on_channel() and
cfg80211_remain_on_channel_expired() ? It seems logical to notify about
off-channel status. Otherwise, how can upper layers know when off-channel
started/finished in context of mgmt_tx()?

Comments?

Thanks, Vladimir

             reply	other threads:[~2013-01-10  8:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10  8:43 Vladimir Kondratiev [this message]
2013-01-25 23:16 ` Q: offchannel operations Johannes Berg
2013-01-28  8:02   ` Vladimir Kondratiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1690590.qQcKllxmg2@lx-vladimir \
    --to=qca_vkondrat@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox