]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cfg80211: fix channel setting for wext
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>
Wed, 13 Jan 2010 21:23:14 +0000 (13:23 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Jan 2010 23:02:38 +0000 (15:02 -0800)
commiteb6002526b1c5cb3e7f9e42004ba395f5d57beaf
tree2a3698332eefe9d90754edec28bcf288679009f8
parent304cd19e41f6c77c3d307869f15a8bfe2a7408cd
cfg80211: fix channel setting for wext

commit 5f6120335c701ba07d5151206071f4d6ccaa684f upstream.

Patch fixes the bug at
http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2139

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 <abhijeet.kolekar@intel.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/wireless/sme.c