lkml.org 
[lkml]   [2008]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 47/47] mac80211: send association event on IBSS create
    -stable review patch.  If anyone has any objections, please let us know.

    ------------------
    From: Dan Williams <dcbw@redhat.com>

    patch 507b06d0622480f8026d49a94f86068bb0fd6ed6 upstream

    Otherwise userspace has no idea the IBSS creation succeeded.

    Signed-off-by: Dan Williams <dcbw@redhat.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    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;
    }

    --


    \
     
     \ /
      Last update: 2008-06-14 02:31    [W:0.020 / U:1.000 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site