rt2500pci with 2.6.27 kernel on ixp425 in master mode

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

cherry314159

09-12-2008 18:42:16

I'm still struggling with the rt2500pci in master mode. While it was sort of working with 2.6.26, I was getting too many duplicate packets to be useful. I've switched to 2.6.27.7 with hostapd 0.6.6 but I can't connect at all. I did have to patch net/mac80211/cfg.c to add the case for NL80211_IFTYPE_AP and AP_VLAN otherwise hostapd failed to inititalize; however, now it runs but the ssid is not set. Here's the debug output of the hostapd command

[listww0a6n6f]
root@OpenWrt/# hostapd -dd /var/run/hostapd-wlan0.conf
Configuration file /var/run/hostapd-wlan0.conf
Line 7 DEPRECATED 'debug' configuration variable is not used anymore
Opening raw packet socket for ifindex 256
BSS count 1, BSSID mask ffffffffffff (0 bits)
SIOCGIWRANGE WE(compiled)=22 WE(source)=21 enc_capa=0xf
Allowed channel mode=1 chan=1 freq=2412 MHz
Allowed channel mode=1 chan=2 freq=2417 MHz
Allowed channel mode=1 chan=3 freq=2422 MHz
Allowed channel mode=1 chan=4 freq=2427 MHz
Allowed channel mode=1 chan=5 freq=2432 MHz
Allowed channel mode=1 chan=6 freq=2437 MHz
Allowed channel mode=1 chan=7 freq=2442 MHz
Allowed channel mode=1 chan=8 freq=2447 MHz
Allowed channel mode=1 chan=9 freq=2452 MHz
Allowed channel mode=1 chan=10 freq=2457 MHz
Allowed channel mode=1 chan=11 freq=2462 MHz
Failed to update rate sets in kernel module
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
RATE[2] rate=55 flags=0x6
RATE[3] rate=110 flags=0x6
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Passive scanning not supported
Flushing old station entries
Deauthenticate all stations
Mode IEEE 802.11g Channel 8 Frequency 2447 MHz
Failed to set CTS protect in kernel driver
Failed to set Short Slot Time option in kernel driver
Could not set preamble for kernel driver
Using interface wlan0 with hwaddr 001505ee6708 and ssid 'OpenWrt'
Failed to set CTS protect in kernel driver
Failed to set Short Slot Time option in kernel driver
Could not set preamble for kernel driver
wlan0 Setup of interface done.
MGMT (TX callback) ACK
Wireless event cmd=0x8b04 len=12
STA 001505ec2c79 sent probe request for broadcast SSID
MGMT (TX callback) fail
mgmtproberesp cb
STA 001505ec2c79 sent probe request for broadcast SSID
MGMT (TX callback) fail
mgmtproberesp cb
STA 001505ec2c79 sent probe request for broadcast SSID
MGMT (TX callback) fail
mgmtproberesp cb
STA 001505ec2c79 sent probe request for broadcast SSID
MGMT (TX callback) fail
mgmtproberesp cb
STA 001505ec2c79 sent probe request for broadcast SSID
MGMT (TX callback) fail
mgmtproberesp cb
unknown vendor specific information element ignored (vendor OUI 001018 len=9)
STA 0016cf9200c9 sent probe request for broadcast SSID
MGMT (TX callback) fail
mgmtproberesp cb
unknown vendor specific information element ignored (vendor OUI 001018 len=9)
unknown vendor specific information element ignored (vendor OUI 001018 len=9)
unknown vendor specific information element ignored (vendor OUI 001018 len=9)
STA 001505ec2c79 sent probe request for broadcast SSID
MGMT (TX callback) fail
mgmtproberesp cb
[/listuww0a6n6f]

Are there additional patches required for master mode? I've also tried the compat-wireless (12/3) but I get similar behavior.

cherry314159

09-12-2008 18:53:21

After reading this thread, it seems that the problem is not limited to the rt73 driver
viewtopic.php?f=5&t=5005&hilit=master

Is there any way I can help to solve this problem? Otherwise, it's time to look
for alternatives.

lente

01-01-2009 12:04:50

Well, ditto here.

I have got an rt2500pci card as well (e-tech brand). Funny thing is, in ad-hoc mode I can create a proper connection.
However with hostapd I first get a
MGMT (TX callback) ACK
Wireless event cmd=0x8b04 len=12

Afterwards all other wireless "events" (e.g. sending out a proberespons) fails.
MGMT (TX callback) fail
mgmtproberesp cb
etc etc

I put some printk's in the kernel (rt500pci_txdone & rt2x00lib_txdone) , but the only thing I could conclude is that the frame is sent towards the card and the card basically sends back "it failed". However, I dont see the difference between sending in ad-hoc mode and hostapd mode. Also I have no clue whatsoever why apparently the first frame does work. I would really appreciate it if someone with a bit more experience could explain to me whats happening exactly.

using latest git & hostapd as kernel, even followed the master mode wiki.

kind regards,

Eric

chainsawbike

09-01-2009 03:19:59

im having the same problem using git hostapd + rt2x00 kernel ( "MGMT (TX callback) fail" + " unknown vendor specific information element ignored (vendor OUI 001018 len=9)" )


but i also get this in my log

[code1c3peqyr]Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=12 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=12 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=12 dBm
[/code1c3peqyr]

is that normal? - i haven seen it do that anywhere else on the forums

EDIT i noticed after a while i do get the odd "MGMT (TX callback) ACK"

IvD

09-01-2009 08:22:37

The "allowed channel" is a new feature, and is in fact correct.
This is the new CRDA at work, this supports region domains and makes sure only channels can be configured which are allowed by the country you live in.