From: Ivo van Doorn <ivdoorn@gmail.com>
To: David Lamparter <lists@diac24.net>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: mac80211 ad-hoc: carrier not set up [was: Panic in ieee_80211_ibss_add_sta]
Date: Tue, 15 May 2007 23:59:28 +0200 [thread overview]
Message-ID: <200705152359.29200.IvDoorn@gmail.com> (raw)
In-Reply-To: <20070515193309.GA29184@charon.n2.diac24.net>
Hi,
> However, ad-hoc still does not work, since the network device's
> carrier status does not seem to be properly set. (It remains
> in NO-CARRIER even after "wlan0: Selected IBSS BSSID
> 92:68:a2:db:de:45 based on configured SSID". I dirtily hacked
> around that with the following two-liner:
I was aware of the recent rt2x00 adhoc breakage but hadn't looked into it yet,
the below suggestion about the netif_carrier does make sense though,
since the last report it was working was before rt2x00 removed the ieee80211_netif
calls, and the first report of its breakage was some time after the removal.
(Since a lot of code has been moved around in between the ieee80211_netif wasn't
the first thing that I would have thought of as a probable cause. ;) )
> --- wireless-dev/net/mac80211/ieee80211_sta.c.orig 2007-05-15 20:19:55.000000000 +0200
> +++ wireless-dev/net/mac80211/ieee80211_sta.c 2007-05-15 21:19:38.362587215 +0200
> @@ -2448,6 +2448,7 @@
> mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL);
>
> ieee80211_rx_bss_put(dev, bss);
> + netif_carrier_on(dev);
>
> return res;
> }
> @@ -2648,6 +2649,7 @@
>
> ifsta->ssid_set = len ? 1 : 0;
> if (sdata->type == IEEE80211_IF_TYPE_IBSS && !ifsta->bssid_set) {
> + netif_carrier_off(dev);
> ifsta->ibss_join_req = jiffies;
> ifsta->state = IEEE80211_IBSS_SEARCH;
> return ieee80211_sta_find_ibss(dev, ifsta);
>
>
> However, I have NO CLUE WHAT I'M DOING THERE! Make a proper fix!
> (Especially, I think it needs more netif_carrier_off calls in
> different places.)
>
>
> Anyway, thanks for my now-working wireless,
Ivo
prev parent reply other threads:[~2007-05-15 22:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-15 15:28 Panic in ieee_80211_ibss_add_sta when trying to join ad-hoc network (rt2500pci) David LAMPARTER
2007-05-15 15:28 ` David LAMPARTER
2007-05-15 17:12 ` John W. Linville
2007-05-15 18:52 ` Michael Wu
2007-05-15 19:33 ` mac80211 ad-hoc: carrier not set up [was: Panic in ieee_80211_ibss_add_sta] David Lamparter
2007-05-15 21:59 ` Ivo van Doorn [this message]
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=200705152359.29200.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=lists@diac24.net \
--cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.