public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: send association event on IBSS create
@ 2008-06-04  1:46 Dan Williams
  2008-06-04  3:39 ` [PATCH v2] " Dan Williams
  2008-06-09 20:24 ` [stable] [PATCH] " Chris Wright
  0 siblings, 2 replies; 4+ messages in thread
From: Dan Williams @ 2008-06-04  1:46 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, stable

Otherwise userspace has no idea the IBSS creation succeeded.

Signed-off-by: Dan Williams <dcbw@redhat.com>
-------------

John, please apply to 2.6.26 and later.

Stable: applicable to 2.6.24 and 2.6.25 as well.  File used to be called
net/mac80211/ieee80211_sta.c and diff should still apply with minor
fuzz.

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index c220bed..fe7deb6 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2348,6 +2348,7 @@ static int ieee80211_sta_join_ibss(struct net_device *dev,
 	u8 *pos;
 	struct ieee80211_sub_if_data *sdata;
 	struct ieee80211_supported_band *sband;
+	union iwreq_data wrqu;
 
 	sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
 
@@ -2865,6 +2866,10 @@ static void ieee80211_rx_bss_info(struct net_device *dev,
 		}
 	}
 
+	memset(&wrqu, 0, sizeof(wrqu));
+	memcpy(wrqu.ap_addr.sa_data, bss->bssid, ETH_ALEN);
+	wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
+
 	ieee80211_rx_bss_put(dev, bss);
 }
 


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

* [PATCH v2] mac80211: send association event on IBSS create
  2008-06-04  1:46 [PATCH] mac80211: send association event on IBSS create Dan Williams
@ 2008-06-04  3:39 ` Dan Williams
  2008-06-04  6:10   ` Johannes Berg
  2008-06-09 20:24 ` [stable] [PATCH] " Chris Wright
  1 sibling, 1 reply; 4+ messages in thread
From: Dan Williams @ 2008-06-04  3:39 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, stable

=EF=BB=BFOtherwise userspace has no idea the IBSS creation succeeded.

Signed-off-by: Dan Williams <dcbw@redhat.com>
-------------

John, please apply to 2.6.26 and later.

Stable: applicable to 2.6.24 and 2.6.25 as well.  File used to be calle=
d
net/mac80211/ieee80211_sta.c and diff should still apply with minor
fixup to the second hunk.

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index c220bed..73c66e0 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2348,6 +2348,7 @@ static int ieee80211_sta_join_ibss(struct net_dev=
ice *dev,
 	u8 *pos;
 	struct ieee80211_sub_if_data *sdata;
 	struct ieee80211_supported_band *sband;
+	union iwreq_data wrqu;
=20
 	sband =3D local->hw.wiphy->bands[local->hw.conf.channel->band];
=20
@@ -2491,6 +2492,10 @@ static int ieee80211_sta_join_ibss(struct net_de=
vice *dev,
 	ifsta->state =3D IEEE80211_IBSS_JOINED;
 	mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL);
=20
+	memset(&wrqu, 0, sizeof(wrqu));
+	memcpy(wrqu.ap_addr.sa_data, bss->bssid, ETH_ALEN);
+	wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
+
 	return res;
 }
=20

--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH v2] mac80211: send association event on IBSS create
  2008-06-04  3:39 ` [PATCH v2] " Dan Williams
@ 2008-06-04  6:10   ` Johannes Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2008-06-04  6:10 UTC (permalink / raw)
  To: Dan Williams; +Cc: John W. Linville, linux-wireless, stable

[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]

On Tue, 2008-06-03 at 23:39 -0400, Dan Williams wrote:
> Otherwise userspace has no idea the IBSS creation succeeded.
> 
> Signed-off-by: Dan Williams <dcbw@redhat.com>

Looks ok to me, you're the wext expert :)

Acked-by: Johannes Berg <johannes@sipsolutions.net>

> -------------
> 
> John, please apply to 2.6.26 and later.
> 
> Stable: applicable to 2.6.24 and 2.6.25 as well.  File used to be called
> net/mac80211/ieee80211_sta.c and diff should still apply with minor
> fixup to the second hunk.
> 
> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
> index c220bed..73c66e0 100644
> --- a/net/mac80211/mlme.c
> +++ b/net/mac80211/mlme.c
> @@ -2348,6 +2348,7 @@ static int ieee80211_sta_join_ibss(struct net_device *dev,
>  	u8 *pos;
>  	struct ieee80211_sub_if_data *sdata;
>  	struct ieee80211_supported_band *sband;
> +	union iwreq_data wrqu;
>  
>  	sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
>  
> @@ -2491,6 +2492,10 @@ static int ieee80211_sta_join_ibss(struct net_device *dev,
>  	ifsta->state = IEEE80211_IBSS_JOINED;
>  	mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL);
>  
> +	memset(&wrqu, 0, sizeof(wrqu));
> +	memcpy(wrqu.ap_addr.sa_data, bss->bssid, ETH_ALEN);
> +	wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
> +
>  	return res;
>  }
>  
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

* Re: [stable] [PATCH] mac80211: send association event on IBSS create
  2008-06-04  1:46 [PATCH] mac80211: send association event on IBSS create Dan Williams
  2008-06-04  3:39 ` [PATCH v2] " Dan Williams
@ 2008-06-09 20:24 ` Chris Wright
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Wright @ 2008-06-09 20:24 UTC (permalink / raw)
  To: Dan Williams; +Cc: John W. Linville, linux-wireless, stable

* Dan Williams (dcbw@redhat.com) wrote:
> Otherwise userspace has no idea the IBSS creation succeeded.

Please resend when this hits upstream, and include the upstream commit
ID.  The easiest way to achieve this is to add "Cc: <stable@kernel.org>"
to the commit log so it gets routed to us upon commit upstream.

> Signed-off-by: Dan Williams <dcbw@redhat.com>
> -------------
> 
> John, please apply to 2.6.26 and later.
> 
> Stable: applicable to 2.6.24 and 2.6.25 as well.  File used to be called
> net/mac80211/ieee80211_sta.c and diff should still apply with minor
> fuzz.

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

end of thread, other threads:[~2008-06-09 20:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04  1:46 [PATCH] mac80211: send association event on IBSS create Dan Williams
2008-06-04  3:39 ` [PATCH v2] " Dan Williams
2008-06-04  6:10   ` Johannes Berg
2008-06-09 20:24 ` [stable] [PATCH] " Chris Wright

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