WLAN Button RT73USB

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=5073

expos

06-11-2008 11:43:28

Hi everybody,

I have an internal WLAN-Card in my Laptop, here's the (shortened) output of hwinfo --wlan

Model "Ralink 802.11 bg WLAN"
Hotplug USB
Vendor usb 0x148f "Ralink Technology, Corp."
Device usb 0x2573 "802.11 bg WLAN"
Revision "0.01"
Driver "rt73usb"
Driver Modules "rt73usb"

Because the driver in the 2.6.25 - Kernel seemed fairly unstable to me, I started using the legacy driver, it worked without problems, there was just the thing with the wpa_supplicant. So I updated the rt2x00 driver with the compat-wireless-package, and until now it works really reliable. Your driver did a huge step forward!!!

There's just one thing With the legacy driver I could switch my wlan with the (hardware) button on and off, with the 2x00 driver, this button has no function. WLAN is always up, except I switch it off by software. What's wrong here? Is it a bug or a not (yet) implemented feature?
It's not really a problem, but it would be a nice feature anyway.

Thanks for your work!!

IvD

06-11-2008 11:59:52

You mean there is actually a button on the USB stick which controls the radio? shock
Well I knew those buttons for the Ralink PCI hardware was rare, but for USB they are apparently extremely rare...

Could you use the regdump script from here
http//kernel.org/pub/linux/kernel/people/ivd/tools/

and create a register dump before you pressed the key and after you pressed the key?
Then I can (soon) add support for it in rt2x00.

expos

06-11-2008 12:17:05

You mean there is actually a button on the USB stick which controls the radio? shock
Well I knew those buttons for the Ralink PCI hardware was rare, but for USB they are apparently extremely rare...

Could you use the regdump script from here
http//kernel.org/pub/linux/kernel/people/ivd/tools/

and create a register dump before you pressed the key and after you pressed the key?
Then I can (soon) add support for it in rt2x00.[/quote3vdyh8yh]


It's not a stick, it's the internal WLAN-function of my laptop. It seems to be connected via USB, here's my lsusb

Bus 006 Device 003 ID 148f2573 Ralink Technology, Corp. RT2501USB Wireless Adapter
Bus 006 Device 004 ID 04f2b022 Chicony Electronics Co., Ltd Camera
Bus 006 Device 001 ID 1d6b0002 Linux Foundation 2.0 root hub
Bus 005 Device 001 ID 1d6b0001 Linux Foundation 1.1 root hub
Bus 003 Device 004 ID 0a120001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 003 Device 001 ID 1d6b0001 Linux Foundation 1.1 root hub
Bus 001 Device 001 ID 1d6b0001 Linux Foundation 1.1 root hub
Bus 002 Device 001 ID 1d6b0001 Linux Foundation 1.1 root hub
Bus 004 Device 001 ID 1d6b0001 Linux Foundation 1.1 root hub

And actually it is not a key, it is a switch.

The script doesn't work, it stops with
ls Zugriff auf /sys/kernel/debug/ieee80211/phy*/rt[0-9]*/ nicht möglich Datei oder Verzeichnis nicht gefunden
what means "there is no folder".
I started it as root and nonroot and made it executable, no success...

I just tried to find a keycode with xev, no reaction when switching on/off... (

IvD

06-11-2008 12:26:39

Sorry, I had to mention you need to enable CONFIG_DEBUGFS, CONFIG_MAC80211_DEBUGS and CONFIG_RT2X00_DEBUGFS in your kernel.

Oh and you have to mount debugfs after that of course.

expos

06-11-2008 12:30:56

Can you give me a description where I find the parameters and how I execute the script?

IvD

06-11-2008 14:47:58

The CONFIG options is configuring and rebuilding your kernel (there is a lot of online documentation about it, each distro has howtos as well)

mounting debugfs is a matter of
mount -t debugfs debugfs /sys/kernel/debug

running the script doesn't need any argument, just run the script and it will autodetect all available Ralink hardware and dump the register. Make sure you redirect the output to a file.

IvD

06-11-2008 14:48:05

The CONFIG options is configuring and rebuilding your kernel (there is a lot of online documentation about it, each distro has howtos as well)

mounting debugfs is a matter of
mount -t debugfs debugfs /sys/kernel/debug

running the script doesn't need any argument, just run the script and it will autodetect all available Ralink hardware and dump the register. Make sure you redirect the output to a file.

expos

07-11-2008 09:16:41

Hi Ivo,

OK, I read a bit about it. I'm a bit afraid to touch my kernel. Last time I tried it, I had to re-install the whole OS, and as I need my laptop the next weeks and this is neither urgent nor a problem.... So I'll do it when I've spare time and write you the results!