Re: Network drivers that don't suspend on interface down



On Thu, 2006-12-21 at 01:15 +0000, Matthew Garrett wrote:
On Wed, Dec 20, 2006 at 01:12:51PM -0500, Dan Williams wrote:

Entirely correct. If the card is DOWN, the radio should be off (both TX
& RX) and it should be in max power save mode. If userspace expects to
be able to get the card to do _anything_ when it's down, that's just
110% wrong. You can't get link events for many wired cards when they
are down, so I fail to see where userspace could expect to do anything
with a wireless card when it's down too.

Because it works on the common hardware? If there's documentation about
what userspace can legitimately expect, then I'm happy to defer to that.
But in the absence of any indication as to what functionality users can
depend on, deciding that existing functionality is a bug is, well,
impolite.

Also, how does rfkill fit into this? rfkill implies killing TX, but do
we have the granularity to still receive while the transmit paths are
powered down?

Is rfkill not just primarily an interface for us getting events when the
radio changes state? Every time I read up on it I get a little more
confused - some time I really need to make sense of it...

That's OK, it's really complicated. There are 3 cases of rfkill
switches AFAICT:

a) tied to the wireless hardware, switch kills hardware directly
b) tied to wireless hardware, but driver handles the kill request
c) just another key, a separate key driver handles the event and asks
the wireless driver to kill the card

It's also complicated because some switches are supposed to rfkill both
an 802.11 module _and_ a bluetooth module at the same time, or I guess
some laptops may even have one rfkill switch for each wireless device.
Furthermore, some people want to 'softkill' the hardware via software
without pushing the key, which is a subset of (b) or (c) above.

It sucks. But we _need_ a unified interface to handle it.

Dan


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Fedora Core 2 and DWL-650+
    ... starts" and removed eth1 (My wireless card). ... Add a new Wireless Connection ... Hardware device should display MAC address of your card. ...
    (comp.os.linux.hardware)
  • Re: [SLE] Wireless Network () - Not working
    ... When checking on the hardware I noticed that under ... so where is this package? ... since my wireless card use to be eth2 when running mandriva, ... >> My other NIC is working and I think YaST detected the card. ...
    (SuSE)
  • [opensuse] installation of Suse10.2 on a laptop Acer Ferrari
    ... hardware configuration and results are as ... The hardware is provided with an AMD Thurion 64 ... IEEE1394 card is correctly configurated but not yet ... Second question concerns how to establish a wireless ...
    (SuSE)
  • Re: Suse 10 & Atheros Wireless
    ... >> All my hardware was detected however, when it came to configure my ... >> the card. ... By default it is picked up as Ethernet NOT wireless. ... > Skyracer with the same Atheros chipset is working fine on SuSE 10. ...
    (alt.os.linux.suse)
  • Re: System slow afer XP-SP2 Update on some applications
    ... Updated your video/sound card hardware drivers from the manufacturers' web ... Many problems just became more noticable with SP2, ...
    (microsoft.public.windowsupdate)