From: Christian Lamparter <chunkeey@web.de>
To: "Joerg Albert" <jal2@gmx.de>
Cc: Johannes Berg <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org
Subject: Re: ar9170usb crashes during iwconfig for ad-hoc mode
Date: Mon, 3 Aug 2009 15:09:54 +0200 [thread overview]
Message-ID: <200908031509.55277.chunkeey@web.de> (raw)
In-Reply-To: <20090803123642.242160@gmx.net>
[-- Attachment #1: Type: text/plain, Size: 841 bytes --]
On Monday 03 August 2009 14:36:42 Joerg Albert wrote:
>
> > On Mon, 2009-08-03 at 10:44 +0200, Johannes Berg wrote:
> >
> > > > > ifconfig wlan1 down
> > > > > iwconfig wlan1 mode managed essid huhu
> > > > > ifconfig wlan1 up
> > > > > ifconfig wlan1 down
> > > > > iwconfig wlan1 mode ad-hoc essid huhu_a channel 1
> >
> > > No, it's a bug in cfg80211 :)
> >
> > But it's not making sense to me. I'll have to try to reproduce it. In
> > any case, we shouldn't be calling in to mac80211 from cfg80211 while the
> > interface is down.
>
> I guess this is caused by the call to __cfg80211_leave_ibss()
> in net/wireless/ibss.c::cfg80211_ibss_wext_siwfreq() trying to
> disable the beacon via net/mac80211::ieee80211_ibss_leave().
what about this? (only compiled so far, don't have the device here...)
Regards,
Chr
[-- Attachment #2: bss-beacon.diff --]
[-- Type: text/x-patch, Size: 495 bytes --]
diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c
index 099ed3c..9c97ad7 100644
--- a/drivers/net/wireless/ath/ar9170/main.c
+++ b/drivers/net/wireless/ath/ar9170/main.c
@@ -2177,7 +2177,7 @@ static void ar9170_op_bss_info_changed(struct ieee80211_hw *hw,
goto out;
}
- if (changed & (BSS_CHANGED_BEACON | BSS_CHANGED_BEACON_ENABLED)) {
+ if (changed & BSS_CHANGED_BEACON_ENABLED) {
err = ar9170_update_beacon(ar);
if (err)
goto out;
next prev parent reply other threads:[~2009-08-03 13:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-02 13:23 ar9170usb crashes during iwconfig for ad-hoc mode Joerg Albert
2009-08-02 22:28 ` Joerg Albert
2009-08-03 8:44 ` Johannes Berg
2009-08-03 8:47 ` Johannes Berg
2009-08-03 12:36 ` Joerg Albert
2009-08-03 13:09 ` Christian Lamparter [this message]
2009-08-03 20:46 ` Joerg Albert
2009-08-03 14:25 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200908031509.55277.chunkeey@web.de \
--to=chunkeey@web.de \
--cc=jal2@gmx.de \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).