linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Arik Nemtsov <arik@wizery.com>
Cc: linux-wireless@vger.kernel.org, Luciano Coelho <coelho@ti.com>
Subject: Re: [PATCH v2] mac80211: add ssid config to bss information in AP-mode
Date: Mon, 05 Sep 2011 11:02:14 +0200	[thread overview]
Message-ID: <1315213334.4075.4.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1315123892-5031-1-git-send-email-arik@wizery.com> (sfid-20110904_101207_398268_A1892296)

On Sun, 2011-09-04 at 11:11 +0300, Arik Nemtsov wrote:
> Set SSID information from nl80211 beacon parameters. Advertise changes
> in SSID to low level drivers.
> 
> Signed-off-by: Arik Nemtsov <arik@wizery.com>
> ---
> v1->2: fixed a bug introduced to ieee80211_reconfig (thanks Eliad)
> 
> include/net/mac80211.h |    8 ++++++++
>  net/mac80211/cfg.c     |   19 ++++++++++++++++++-
>  net/mac80211/util.c    |    2 ++
>  3 files changed, 28 insertions(+), 1 deletions(-)
> 
> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index 2f01d84..137d67d 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -164,6 +164,7 @@ struct ieee80211_low_level_stats {
>   * @BSS_CHANGED_QOS: QoS for this association was enabled/disabled. Note
>   *	that it is only ever disabled for station mode.
>   * @BSS_CHANGED_IDLE: Idle changed for this BSS/interface.
> + * @BSS_CHANGED_SSID: SSID changed for this BSS (AP mode)
>   */
>  enum ieee80211_bss_change {
>  	BSS_CHANGED_ASSOC		= 1<<0,
> @@ -181,6 +182,7 @@ enum ieee80211_bss_change {
>  	BSS_CHANGED_ARP_FILTER		= 1<<12,
>  	BSS_CHANGED_QOS			= 1<<13,
>  	BSS_CHANGED_IDLE		= 1<<14,
> +	BSS_CHANGED_SSID		= 1<<15,
>  
>  	/* when adding here, make sure to change ieee80211_reconfig */
>  };
> @@ -254,6 +256,9 @@ enum ieee80211_rssi_event {
>   * @idle: This interface is idle. There's also a global idle flag in the
>   *	hardware config which may be more appropriate depending on what
>   *	your driver/device needs to do.
> + * @ssid: The SSID of the current vif. Only valid in AP-mode.
> + * @ssid_len: Length of SSID given in @ssid.
> + * @hidden_ssid: The SSID of the current vif is hidden. Only valid in AP-mode.
>   */
>  struct ieee80211_bss_conf {
>  	const u8 *bssid;
> @@ -280,6 +285,9 @@ struct ieee80211_bss_conf {
>  	bool arp_filter_enabled;
>  	bool qos;
>  	bool idle;
> +	u8 ssid[IEEE80211_MAX_SSID_LEN];
> +	size_t ssid_len;
> +	bool hidden_ssid;

I guess the reason you don't use the nl80211 enum here is that the
device doesn't care since the beacon is built by hostapd/mac80211 and
entirely transparent to the device?

> +static void ieee80211_config_ap_ssid(struct ieee80211_sub_if_data
> *sdata,
> +                                    struct beacon_parameters *params)

Any particular reason for not just inlining the few code lines?


However, what's this used for? Didn't we discuss this before and decide
that there's no clear way to implement probe response offloading given
the possibility that WPS, P2P and similar protocols that use probe
request/response handshaking could be in use?

johannes


  reply	other threads:[~2011-09-05  9:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-04  8:11 [PATCH v2] mac80211: add ssid config to bss information in AP-mode Arik Nemtsov
2011-09-05  9:02 ` Johannes Berg [this message]
2011-09-06  6:21   ` Arik Nemtsov

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=1315213334.4075.4.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=arik@wizery.com \
    --cc=coelho@ti.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;
as well as URLs for NNTP newsgroup(s).