linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mac80211 bug? no data is being transmitted after interface is brought down and then up again
@ 2008-03-29 18:32 Thomas Bächler
  2008-03-31 19:02 ` John W. Linville
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Bächler @ 2008-03-29 18:32 UTC (permalink / raw)
  To: linux-wireless

This is the result of my quest to find the reason why I couldn't roam 
with any mac80211 driver (tested with iwl3945 and b43).

When you use dhclient for dhcp, the (very old) default dhclient-script 
brings the interface down and then up again after it receives a DHCPNAK 
(and on some other occasions). With the ieee80211 stack, this never 
caused any problems.

However, with mac80211, after the interface has been brought down and 
then up again, the "RUNNING" flag in ifconfig disappears and no data is 
being transmitted. Due to dhclient's weird behaviour, this makes any 
mac80211 driver unusable with dhclient and the (very old) default script.

I had no difficulty fixing this problem (once I found it), simply remove 
the word 'down' from all ifconfig-lines in dhclient-script.

My question is, should this be considered a bug in mac80211?
IMO, when an interface is brought down and then up again, one of the 
following things should happen:
1) Everything works as before
2) Nothing works, but the card disassociates from the network.
The current behaviour (card stays associated, but no data is transmitted 
any more) is unintuitive and costed me much time.


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

* Re: mac80211 bug? no data is being transmitted after interface is brought down and then up again
  2008-03-29 18:32 mac80211 bug? no data is being transmitted after interface is brought down and then up again Thomas Bächler
@ 2008-03-31 19:02 ` John W. Linville
  2008-03-31 19:51   ` Thomas Bächler
  2008-04-01  1:53   ` bruno randolf
  0 siblings, 2 replies; 6+ messages in thread
From: John W. Linville @ 2008-03-31 19:02 UTC (permalink / raw)
  To: Thomas Bächler; +Cc: linux-wireless

On Sat, Mar 29, 2008 at 07:32:51PM +0100, Thomas B=E4chler wrote:

> My question is, should this be considered a bug in mac80211?
> IMO, when an interface is brought down and then up again, one of the=20
> following things should happen:
> 1) Everything works as before
> 2) Nothing works, but the card disassociates from the network.

#2 would be my vote.

> The current behaviour (card stays associated, but no data is transmit=
ted=20
> any more) is unintuitive and costed me much time.

Seems like a bug to me.  Would you mind opening a bug at
bugzilla.kernel.org?

Thanks!

John
--=20
John W. Linville
linville@tuxdriver.com
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: mac80211 bug? no data is being transmitted after interface is brought down and then up again
  2008-03-31 19:02 ` John W. Linville
@ 2008-03-31 19:51   ` Thomas Bächler
  2008-04-01  1:53   ` bruno randolf
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas Bächler @ 2008-03-31 19:51 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

John W. Linville schrieb:
>> 1) Everything works as before
>> 2) Nothing works, but the card disassociates from the network.
> 
> #2 would be my vote.

Fine by me, as long as I don't spend 6 months again trying to make my 
wireless work :)

>> The current behaviour (card stays associated, but no data is transmitted 
>> any more) is unintuitive and costed me much time.
> 
> Seems like a bug to me.  Would you mind opening a bug at
> bugzilla.kernel.org?

Good, opened a report:
http://bugzilla.kernel.org/show_bug.cgi?id=10372


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* Re: mac80211 bug? no data is being transmitted after interface is brought down and then up again
  2008-03-31 19:02 ` John W. Linville
  2008-03-31 19:51   ` Thomas Bächler
@ 2008-04-01  1:53   ` bruno randolf
  2008-04-01  6:27     ` Tomas Winkler
  1 sibling, 1 reply; 6+ messages in thread
From: bruno randolf @ 2008-04-01  1:53 UTC (permalink / raw)
  To: John W. Linville; +Cc: Thomas Bächler, linux-wireless

On Tuesday 01 April 2008 04:02:25 John W. Linville wrote:
> On Sat, Mar 29, 2008 at 07:32:51PM +0100, Thomas B=E4chler wrote:
> > My question is, should this be considered a bug in mac80211?
> > IMO, when an interface is brought down and then up again, one of th=
e
> > following things should happen:
> > 1) Everything works as before
> > 2) Nothing works, but the card disassociates from the network.
>
> #2 would be my vote.

why is that? would it be so difficult to provide #1?

from a usability point of view #1 would be clearly better. whatever the=
 state=20
was before, when i bring the interface up it want it to work (associate=
, join=20
IBSS) and be able to transmit data.

bruno
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: mac80211 bug? no data is being transmitted after interface is brought down and then up again
  2008-04-01  1:53   ` bruno randolf
@ 2008-04-01  6:27     ` Tomas Winkler
  2008-04-01 12:57       ` bruno randolf
  0 siblings, 1 reply; 6+ messages in thread
From: Tomas Winkler @ 2008-04-01  6:27 UTC (permalink / raw)
  To: bruno randolf; +Cc: John W. Linville, Thomas Bächler, linux-wireless

On 4/1/08, bruno randolf <bruno@thinktube.com> wrote:
> On Tuesday 01 April 2008 04:02:25 John W. Linville wrote:
> > On Sat, Mar 29, 2008 at 07:32:51PM +0100, Thomas B=E4chler wrote:
> > > My question is, should this be considered a bug in mac80211?
> > > IMO, when an interface is brought down and then up again, one of =
the
> > > following things should happen:
> > > 1) Everything works as before
> > > 2) Nothing works, but the card disassociates from the network.
> >
> > #2 would be my vote.
>
> why is that? would it be so difficult to provide #1?

Driver should not take policy decision. It should be user controled app=
lincation
such as NM or ifup script of whatever to decide if to reconnect or not.

>
> from a usability point of view #1 would be clearly better. whatever t=
he state
> was before, when i bring the interface up it want it to work (associa=
te, join
> IBSS) and be able to transmit data.

=46or usuablity point of view you should configure your applicantion or
script to do reconnection, but it should not be driver call to do
that.
There are security issues with this that just get more and more compilc=
ated.
In application level you have more options to discover your
environment and handle user preferences. and take the correct call

Tomas

> bruno
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wirel=
ess" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: mac80211 bug? no data is being transmitted after interface is brought down and then up again
  2008-04-01  6:27     ` Tomas Winkler
@ 2008-04-01 12:57       ` bruno randolf
  0 siblings, 0 replies; 6+ messages in thread
From: bruno randolf @ 2008-04-01 12:57 UTC (permalink / raw)
  To: Tomas Winkler; +Cc: John W. Linville, Thomas Bächler, linux-wireless

On Tuesday 01 April 2008 15:27:06 Tomas Winkler wrote:
> On 4/1/08, bruno randolf <bruno@thinktube.com> wrote:
> > On Tuesday 01 April 2008 04:02:25 John W. Linville wrote:
> > > On Sat, Mar 29, 2008 at 07:32:51PM +0100, Thomas B=E4chler wrote:
> > > > My question is, should this be considered a bug in mac80211?
> > > > IMO, when an interface is brought down and then up again, one o=
f the
> > > > following things should happen:
> > > > 1) Everything works as before
> > > > 2) Nothing works, but the card disassociates from the network.
> > >
> > > #2 would be my vote.
> >
> > why is that? would it be so difficult to provide #1?
>
> Driver should not take policy decision. It should be user controled
> applincation such as NM or ifup script of whatever to decide if to
> reconnect or not.
>
> > from a usability point of view #1 would be clearly better. whatever=
 the
> > state was before, when i bring the interface up it want it to work
> > (associate, join IBSS) and be able to transmit data.
>
> For usuablity point of view you should configure your applicantion or
> script to do reconnection, but it should not be driver call to do
> that.
> There are security issues with this that just get more and more
> compilcated.. In application level you have more options to discover =
your
> environment and handle user preferences. and take the correct call

allright - that seems to be the way to go. thanks for the explanation. =
i guess=20
i'm a little bit behind, still thinking in in terms of iwconfig ;)

bruno
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2008-04-01 12:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-29 18:32 mac80211 bug? no data is being transmitted after interface is brought down and then up again Thomas Bächler
2008-03-31 19:02 ` John W. Linville
2008-03-31 19:51   ` Thomas Bächler
2008-04-01  1:53   ` bruno randolf
2008-04-01  6:27     ` Tomas Winkler
2008-04-01 12:57       ` bruno randolf

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).