public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v2] cfg80211: fix channel setting for wext
  2010-01-13 18:04 [PATCH v2] cfg80211: fix channel setting for wext Abhijeet Kolekar
@ 2010-01-13 18:04 ` Luis R. Rodriguez
  2010-01-13 18:47   ` Abhijeet Kolekar
  0 siblings, 1 reply; 3+ messages in thread
From: Luis R. Rodriguez @ 2010-01-13 18:04 UTC (permalink / raw)
  To: Abhijeet Kolekar; +Cc: linux-wireless

On Wed, Jan 13, 2010 at 10:04 AM, Abhijeet Kolekar
<abhijeet.kolekar@intel.com> wrote:
> 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>

Is this a stable fix as well?

  Luis

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

* [PATCH v2] cfg80211: fix channel setting for wext
@ 2010-01-13 18:04 Abhijeet Kolekar
  2010-01-13 18:04 ` Luis R. Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Abhijeet Kolekar @ 2010-01-13 18:04 UTC (permalink / raw)
  To: linux-wireless; +Cc: Abhijeet Kolekar

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>
---
v2: Changed mac80211 to cfg80211

 net/wireless/sme.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/wireless/sme.c b/net/wireless/sme.c
index 2333d78..dc0fc49 100644
--- a/net/wireless/sme.c
+++ b/net/wireless/sme.c
@@ -655,6 +655,7 @@ void __cfg80211_disconnected(struct net_device *dev, const u8 *ie,
 	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;
 #endif
 }
 
-- 
1.6.3.3


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

* Re: [PATCH v2] cfg80211: fix channel setting for wext
  2010-01-13 18:04 ` Luis R. Rodriguez
@ 2010-01-13 18:47   ` Abhijeet Kolekar
  0 siblings, 0 replies; 3+ messages in thread
From: Abhijeet Kolekar @ 2010-01-13 18:47 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless@vger.kernel.org

On Wed, 2010-01-13 at 10:04 -0800, Luis R. Rodriguez wrote:
> On Wed, Jan 13, 2010 at 10:04 AM, Abhijeet Kolekar
> <abhijeet.kolekar@intel.com> wrote:
> > 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>
> 
> Is this a stable fix as well?
> 
Yes it can be a candidate for stable. I will resubmit.

Thanks
Abhijeet
>   Luis



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

end of thread, other threads:[~2010-01-13 18:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 18:04 [PATCH v2] cfg80211: fix channel setting for wext Abhijeet Kolekar
2010-01-13 18:04 ` Luis R. Rodriguez
2010-01-13 18:47   ` Abhijeet Kolekar

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