netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] bcm43xx: set channel when the interface is brought up
@ 2007-01-25  6:50 Pavel Roskin
  2007-01-25  9:30 ` Jiri Benc
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Pavel Roskin @ 2007-01-25  6:50 UTC (permalink / raw)
  To: bcm43xx-dev-0fE9KPoRgkgATYTw5x5z8w, netdev-u79uwXL29TY76Z2rM5mHXA

Hello!

I have discovered that while I can indeed associate without
wpa_supplicant using bcm43xx_d80211 driver, I have to set the channel
every time the interface is brought down and up.

It turns out d80211 uses the "config" method of the hardware drivers
very sparingly.  It's only used for scanning and in ioctl commands.  It
is not called after the interface has been brought up with the "open"
method.

I don't know whose responsibility it should be to apply the
configuration when the interface is brought up.  I'm not familiar with
d80211 design principles.

If the hardware drivers are supposed to do it, here's my patch.  It is
working fine for me and ready to be applied.  The changelog is in the
subject.

Signed-off-by: Pavel Roskin <proski-mXXj517/zsQ@public.gmane.org>
---

 drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c
index 9f4d51d..d408e38 100644
--- a/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c
+++ b/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c
@@ -2809,6 +2809,9 @@ static int bcm43xx_dev_open(struct ieee80211_hw *hw)
 	}
 	mutex_unlock(&wl->mutex);
 
+	if (!err)
+		err = bcm43xx_dev_config(hw, &hw->conf);
+
 	return err;
 }
 


-- 
Regards,
Pavel Roskin

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

end of thread, other threads:[~2007-01-26 13:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-25  6:50 [RFC PATCH] bcm43xx: set channel when the interface is brought up Pavel Roskin
2007-01-25  9:30 ` Jiri Benc
2007-01-25 11:47 ` Ivo Van Doorn
2007-01-25 12:50   ` Jiri Benc
2007-01-25 12:57     ` Ivo Van Doorn
     [not found]     ` <20070125135033.7d7d7baf-IhiK2ZEFs2oCVLCxKZUutA@public.gmane.org>
2007-01-25 14:05       ` Gene Heskett
2007-01-25 14:23         ` Jiri Benc
     [not found]           ` <20070125152321.434bb17c-IhiK2ZEFs2oCVLCxKZUutA@public.gmane.org>
2007-01-25 14:34             ` Gene Heskett
2007-01-26 13:45               ` Johannes Berg
2007-01-25 15:36         ` Larry Finger
2007-01-25 16:26           ` Dan Williams
2007-01-25 16:51 ` Michael Wu
2007-01-25 20:12   ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).