Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764017AbYFNA2h (ORCPT ); Fri, 13 Jun 2008 20:28:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762319AbYFNAPo (ORCPT ); Fri, 13 Jun 2008 20:15:44 -0400 Received: from cantor.suse.de ([195.135.220.2]:34701 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762312AbYFNAPm (ORCPT ); Fri, 13 Jun 2008 20:15:42 -0400 Date: Fri, 13 Jun 2008 17:12:23 -0700 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Dan Williams , "John W. Linville" Subject: [patch 47/47] mac80211: send association event on IBSS create Message-ID: <20080614001223.GU24698@suse.de> References: <20080613234753.235721454@mini.kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="mac80211-send-association-event-on-ibss-create.patch" In-Reply-To: <20080614000840.GA24659@suse.de> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1335 Lines: 45 -stable review patch. If anyone has any objections, please let us know. ------------------ From: Dan Williams patch 507b06d0622480f8026d49a94f86068bb0fd6ed6 upstream Otherwise userspace has no idea the IBSS creation succeeded. Signed-off-by: Dan Williams Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- net/mac80211/ieee80211_sta.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c @@ -2723,6 +2723,7 @@ static int ieee80211_sta_join_ibss(struc struct rate_selection ratesel; u8 *pos; struct ieee80211_sub_if_data *sdata; + union iwreq_data wrqu; /* Remove possible STA entries from other IBSS networks. */ sta_info_flush(local, NULL); @@ -2863,6 +2864,10 @@ static int ieee80211_sta_join_ibss(struc ieee80211_rx_bss_put(dev, bss); + 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-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/