[lkml]   [2010]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[85/98] cfg80211: fix channel setting for wext
    2.6.32-stable review patch.  If anyone has any objections, please let us know.


    From: Abhijeet Kolekar <>

    commit 5f6120335c701ba07d5151206071f4d6ccaa684f upstream.

    Patch fixes the bug at

    Currently we cannot set the channel using wext extension
    if we have already associated and disconnected. As
    cfg80211_mgd_wext_siwfreq will not switch the channel if ssid is set.
    This fixes it by clearing the ssid.
    Following is the sequence which it tries to fix.
    modprobe iwlagn
    iwconfig wlan0 essid ""
    ifconfig wlan0 down
    iwconfig wlan0 chan X

    wext is marked as deprecate.If we use nl80211 we can easily play with
    setting the channel.

    Signed-off-by: Abhijeet Kolekar <>
    Acked-by: Samuel Ortiz <>
    Signed-off-by: John W. Linville <>
    Signed-off-by: Greg Kroah-Hartman <>

    net/wireless/sme.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/net/wireless/sme.c
    +++ b/net/wireless/sme.c
    @@ -655,6 +655,7 @@ void __cfg80211_disconnected(struct net_
    memset(&wrqu, 0, sizeof(wrqu));
    wrqu.ap_addr.sa_family = ARPHRD_ETHER;
    wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
    + wdev->wext.connect.ssid_len = 0;

     \ /
      Last update: 2010-01-27 00:49    [W:0.024 / U:43.940 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site