All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rostislav Lisovy <lisovy@gmail.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [RFC 1/4] mac80211: Allow 5/10 MHz channel setting (for OCB)
Date: Mon, 17 Feb 2014 16:49:26 +0100	[thread overview]
Message-ID: <1392652166.878.19.camel@umadbro> (raw)
In-Reply-To: <1392644957.5202.7.camel@jlt4.sipsolutions.net>

Dear Johannes;
Thank you for your feedback.

On Mon, 2014-02-17 at 14:49 +0100, Johannes Berg wrote:
> On Mon, 2014-02-17 at 14:22 +0100, Rostislav Lisovy wrote:
> > Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
> 
> Err, some text is definitely needed.
> 
> > ---
> >  include/net/cfg80211.h       |  19 ++++++-
> >  include/net/mac80211.h       |   4 +-
> >  include/uapi/linux/nl80211.h |  17 ++++++-
> >  net/wireless/chan.c          |   8 +++
> >  net/wireless/core.c          |   3 --
> >  net/wireless/nl80211.c       |  14 ++++++
> >  net/wireless/reg.c           | 115 ++++++++++++++++++++++++++++++++++++++-----
> >  7 files changed, 161 insertions(+), 19 deletions(-)

> 
> Umm.
> 
> Might have mentioned that in your 0/4 that you want help on specific
> things :)
> 
> [I haven't even really reviewed the regulatory code]


As you have already noticed, this is work in progress. I agree it is
necessary to keep the code clean if I want others to read it -- I try to
do so but it does not always go very well.

One thing I am not sure about (mentioned in 0/4) and need some
suggestions is frequency setting in the OCB mode.
Since there are no beacons containing the information about the
frequency to set, the frequency is set manually. Since the
'set_channel()' function is not present anymore (and we do not have
'ocb_join()' function, thus we cannot use 'preset_chandef'), I was not
able to figure out how to set a fixed channel.
If I would want to set the frequency with the
ieee80211_vif_use_channel() function, I would need to somehow obtain the
*sdata. If I check ieee80211_set_monitor_channel() I see how *sdata is
obtained there, but I am not sure if it is a good idea to add *ocb_sdata
to struct ieee80211_local?

Best regards;
Rostislav Lisovy

WARNING: multiple messages have this Message-ID (diff)
From: Rostislav Lisovy <lisovy@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org,
	Michal Sojka <sojkam1@fel.cvut.cz>,
	s.sander@nordsys.de, jan-niklas.meier@volkswagen.de
Subject: Re: [RFC 1/4] mac80211: Allow 5/10 MHz channel setting (for OCB)
Date: Mon, 17 Feb 2014 16:49:26 +0100	[thread overview]
Message-ID: <1392652166.878.19.camel@umadbro> (raw)
In-Reply-To: <1392644957.5202.7.camel@jlt4.sipsolutions.net>

Dear Johannes;
Thank you for your feedback.

On Mon, 2014-02-17 at 14:49 +0100, Johannes Berg wrote:
> On Mon, 2014-02-17 at 14:22 +0100, Rostislav Lisovy wrote:
> > Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
> 
> Err, some text is definitely needed.
> 
> > ---
> >  include/net/cfg80211.h       |  19 ++++++-
> >  include/net/mac80211.h       |   4 +-
> >  include/uapi/linux/nl80211.h |  17 ++++++-
> >  net/wireless/chan.c          |   8 +++
> >  net/wireless/core.c          |   3 --
> >  net/wireless/nl80211.c       |  14 ++++++
> >  net/wireless/reg.c           | 115 ++++++++++++++++++++++++++++++++++++++-----
> >  7 files changed, 161 insertions(+), 19 deletions(-)

> 
> Umm.
> 
> Might have mentioned that in your 0/4 that you want help on specific
> things :)
> 
> [I haven't even really reviewed the regulatory code]


As you have already noticed, this is work in progress. I agree it is
necessary to keep the code clean if I want others to read it -- I try to
do so but it does not always go very well.

One thing I am not sure about (mentioned in 0/4) and need some
suggestions is frequency setting in the OCB mode.
Since there are no beacons containing the information about the
frequency to set, the frequency is set manually. Since the
'set_channel()' function is not present anymore (and we do not have
'ocb_join()' function, thus we cannot use 'preset_chandef'), I was not
able to figure out how to set a fixed channel.
If I would want to set the frequency with the
ieee80211_vif_use_channel() function, I would need to somehow obtain the
*sdata. If I check ieee80211_set_monitor_channel() I see how *sdata is
obtained there, but I am not sure if it is a good idea to add *ocb_sdata
to struct ieee80211_local?

Best regards;
Rostislav Lisovy


  reply	other threads:[~2014-02-17 15:49 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-17 13:22 [ath9k-devel] [RFC 0/4] mac80211 & ath9k: ITS-G5 (IEEE 802.11p) basic support Rostislav Lisovy
2014-02-17 13:22 ` Rostislav Lisovy
2014-02-17 13:22 ` [ath9k-devel] [RFC 1/4] mac80211: Allow 5/10 MHz channel setting (for OCB) Rostislav Lisovy
2014-02-17 13:22   ` Rostislav Lisovy
2014-02-17 13:49   ` [ath9k-devel] " Johannes Berg
2014-02-17 13:49     ` Johannes Berg
2014-02-17 15:49     ` Rostislav Lisovy [this message]
2014-02-17 15:49       ` Rostislav Lisovy
2014-02-17 16:38       ` [ath9k-devel] " Johannes Berg
2014-02-17 16:38         ` Johannes Berg
2014-02-17 13:22 ` [ath9k-devel] [RFC 2/4] ath9k: " Rostislav Lisovy
2014-02-17 13:22   ` Rostislav Lisovy
2014-02-17 13:22 ` [ath9k-devel] [RFC 3/4] mac80211: Add OCB (IEEE 802.11p) mode Rostislav Lisovy
2014-02-17 13:22   ` Rostislav Lisovy
2014-02-17 13:50   ` [ath9k-devel] " Johannes Berg
2014-02-17 13:50     ` Johannes Berg
2014-02-17 13:22 ` [ath9k-devel] [RFC 4/4] ath9k: " Rostislav Lisovy
2014-02-17 13:22   ` Rostislav Lisovy

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=1392652166.878.19.camel@umadbro \
    --to=lisovy@gmail.com \
    --cc=ath9k-devel@lists.ath9k.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.