From: Johannes Berg <johannes@sipsolutions.net>
To: Alexander Simon <alexander.simon@saxnet.de>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC v3 3/3] mac80211: HT operation in IBSS
Date: Mon, 27 Jun 2011 14:50:53 +0200 [thread overview]
Message-ID: <1309179053.3911.22.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1308671609.2656.10.camel@alex-2> (sfid-20110621_175338_716675_C53F4621)
On Tue, 2011-06-21 at 17:53 +0200, Alexander Simon wrote:
> + /* entering a legacy IBSS. Use given HT configuration. */
> + if (channel_type == NL80211_CHAN_NO_HT)
> + channel_type = ifibss->channel_type;
> +
> local->oper_channel = chan;
> - WARN_ON(!ieee80211_set_channel_type(local, sdata, NL80211_CHAN_NO_HT));
> + WARN_ON(!ieee80211_set_channel_type(local, sdata, channel_type));
I don't think you can now safely assume that set_channel_type() will
succeed, but I didn't check the chan.c code for IBSS now. Please explain
why this is OK now if you think that it is. NO_HT is always compatible,
but the HT mode you used won't necessarily be. I think for fixed-channel
mode this might be an issue.
> + local->_oper_channel_type =
> + channel_type;
> + WARN_ON(!ieee80211_set_channel_type(
> + local,
> + sdata,
> + channel_type));
Same here of course.
> @@ -404,7 +482,7 @@ static void ieee80211_rx_bss_info(struct
> ieee80211_sta_join_ibss(sdata, bss);
> supp_rates = ieee80211_sta_get_rates(local, elems, band);
> ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa,
> - supp_rates, GFP_KERNEL);
> + supp_rates, elems->ht_cap_elem, GFP_KERNEL);
indentation?
johannes
next prev parent reply other threads:[~2011-06-27 12:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-21 15:45 [RFC v3 1/3] mac80211: add some helper functions Alexander Simon
2011-06-21 15:52 ` [RFC v3 2/3] nl80211: channel type attribute for IBSS Alexander Simon
2011-06-24 18:56 ` Felix Fietkau
2011-07-04 10:07 ` Alexander Simon
2011-07-04 10:10 ` Johannes Berg
2011-06-27 12:46 ` Johannes Berg
2011-06-21 15:53 ` [RFC v3 3/3] mac80211: HT operation in IBSS Alexander Simon
2011-06-24 19:21 ` Felix Fietkau
2011-06-27 12:50 ` Johannes Berg [this message]
2011-06-27 12:51 ` Johannes Berg
2011-06-21 16:01 ` patch for iw Alexander Simon
2011-06-27 12:42 ` Johannes Berg
2011-06-21 16:02 ` [RFC v3 1/3] mac80211: add some helper functions Johannes Berg
2011-06-24 19:01 ` Felix Fietkau
2011-06-27 12:46 ` Johannes Berg
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=1309179053.3911.22.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=alexander.simon@saxnet.de \
--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;
as well as URLs for NNTP newsgroup(s).