the rt61 device why is disabled

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

doyer

24-11-2008 07:42:24

hi,
when i open the wlan0,the device's status is disabled.
i typed follow below
[codefgokpat8]
iwconfig wlan0 essid test
ifconfig wlan0 up
[/codefgokpat8]
i print out the calling process,and then it output the below msg [bfgokpat8]repeating[/bfgokpat8],
it looks like that the task of ieee80211_sta_work is sleepping.
[codefgokpat8]
wmaster0:Enter ieee80211_sta_config_auth
wmaster0:ieee80211_sta_config_auth set ifsta->state = IEEE80211_AUTHENTICATE
wmaster0:Enter __ieee80211_tx Send Msg
wmaster0:Enter __ieee80211_tx Send Msg
wmaster0:Enter __ieee80211_tx Send Msg
wmaster0:Enter __ieee80211_tx Send Msg
wmaster0:Enter __ieee80211_tx Send Msg
wmaster0:Enter __ieee80211_rx_handle_packet

wmaster0: Call ieee80211_rx_handlers[0]
result:RX_CONTINUE
wmaster0: Call ieee80211_rx_handlers[1]
wmaster0:Enter ieee80211_rx_h_passive_scan
wmaster0:sta_sw_scanning=1,Call ieee80211_sta_rx_scan
wmaster0:Enter ieee80211_sta_rx_scan
wmaster0:Call ieee80211_rx_mgmt_beacon
wmaster0:Enter ieee80211_rx_bss_info ...
wmaster0:Call ieee80211_rx_bss_get return:NULL
wmaster0: Enter ieee80211_rx_bss_add:[bssid=00:1b:11:66:9a:8f]
wmaster0:ieee80211_rx_bss_info [beacon=1,bss->probe_resp=0]
wmaster0: Enter ieee80211_rx_bss_put:[bss=00:1b:11:66:9a:8f]
result:RX_QUEUED
wlan0: Call ieee80211_rx_handlers[0]
result:RX_CONTINUE
wlan0: Call ieee80211_rx_handlers[1]
wmaster0:Enter ieee80211_rx_h_passive_scan
wmaster0:sta_sw_scanning=1,Call ieee80211_sta_rx_scan
wlan0:Enter ieee80211_sta_rx_scan
wlan0:Call ieee80211_rx_mgmt_beacon
wlan0:Enter ieee80211_rx_bss_info ...
wlan0:Call ieee80211_rx_bss_get return:=00:1b:11:66:9a:8f
wlan0:ieee80211_rx_bss_info [beacon=1,bss->probe_resp=0]
wlan0: Enter ieee80211_rx_bss_put:[bss=00:1b:11:66:9a:8f]
result:RX_QUEUED
...
repeating...
[/codefgokpat8]
why?
if i need some else configuration?

IvD

24-11-2008 09:03:51

Wel sta_work is sleeping since it is periodic work, so it will only execute once every X milliseconds.
What you are not mentioning, is what you are trying to do, it seems to receive frames so scanning is probably working correctly, you are not configuring a BSSID, so you don't want it to associate to an AP.

doyer

24-11-2008 11:41:13

Wel sta_work is sleeping since it is periodic work, so it will only execute once every X milliseconds.
What you are not mentioning, is what you are trying to do, it seems to receive frames so scanning is probably working correctly, you are not configuring a BSSID, so you don't want it to associate to an AP.[/quote20rb5qpb]
and how to configure the bssid? i need it associate to an AP...
i have another question
when open the device the [b20rb5qpb]ieee80211_sta_scan_work[/b20rb5qpb] task will run and send out packets,
but it will not work once the device recived packets when scanning,
and the recive interrupt will be captured constantly,the recive handler will run into "[b20rb5qpb]ieee80211_rx_h_passive_scan[/b20rb5qpb]" and return "[b20rb5qpb]RX_QUEUED[/b20rb5qpb]",so it will not run continue and just return.
i don't known whether the [b20rb5qpb]ieee80211_sta_scan_work[/b20rb5qpb] task is sleepping or been cancled.
thanks!

IvD

24-11-2008 14:39:03


and how to configure the bssid? i need it associate to an AP...
[/quote3bdt4ch0]

Well reading the manpage of the wireless tool is usually a very good start.
[code3bdt4ch0]man iwconfig[/code3bdt4ch0]


i have another question
when open the device the [b3bdt4ch0]ieee80211_sta_scan_work[/b3bdt4ch0] task will run and send out packets,
but it will not work once the device recived packets when scanning,
and the recive interrupt will be captured constantly,the recive handler will run into "[b3bdt4ch0]ieee80211_rx_h_passive_scan[/b3bdt4ch0]" and return "[b3bdt4ch0]RX_QUEUED[/b3bdt4ch0]",so it will not run continue and just return.
i don't known whether the [b3bdt4ch0]ieee80211_sta_scan_work[/b3bdt4ch0] task is sleepping or been cancled.
thanks![/quote3bdt4ch0]

Questions regarding mac80211 should go to the linux-wireless mailinglist. Where mac80211 developers can answer all your questions.

doyer

25-11-2008 06:14:35

ok.
i want to known why the RX interrupt can be captured constantly in "rt61pci_interrupt", as a reuslt that the system is busy to handle the interrrupt.
[code29m17b3g]
static irqreturn_t rt61pci_interrupt(int irq, void *dev_instance)
{
struct rt2x00_dev *rt2x00dev = dev_instance;
u32 reg_mcu;
u32 reg;

/*
* Get the interrupt sources & saved to local variable.
* Write register value back to clear pending interrupts.
*/
rt2x00pci_register_read(rt2x00dev, MCU_INT_SOURCE_CSR, &reg_mcu);
rt2x00pci_register_write(rt2x00dev, MCU_INT_SOURCE_CSR, reg_mcu);
rt2x00pci_register_read(rt2x00dev, INT_SOURCE_CSR, &reg);
rt2x00pci_register_write(rt2x00dev, INT_SOURCE_CSR, reg);

if (!reg && !reg_mcu)
return IRQ_NONE;
if (!test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags))
return IRQ_HANDLED;
/*
* Handle interrupts, walk through all bits
* and run the tasks, the bits are checked in order of
* priority.
*/
/*
* 1 - Rx ring done interrupt.
*/
if (rt2x00_get_field32(reg, INT_SOURCE_CSR_RXDONE))
rt2x00pci_rxdone(rt2x00dev);
/*******************this interrupt occured frequently************************/

/*
* 2 - Tx ring done interrupt.
*/
if (rt2x00_get_field32(reg, INT_SOURCE_CSR_TXDONE))
rt61pci_txdone(rt2x00dev);
/*
* 3 - Handle MCU command done.
*/
if (reg_mcu)
rt2x00pci_register_write(rt2x00dev,M2H_CMD_DONE_CSR, 0xffffffff);
return IRQ_HANDLED;
}
[/code29m17b3g]

IvD

25-11-2008 08:47:30

I think I am missing the point what you are investigating.

The RX interrupt is triggering because the device is receiving frames from the network, overall that is a good thing since otherwise your card would be useless.

doyer

26-11-2008 00:42:13

sorry,i don't understand the wmaster0 well.
i shown it's confiuration like below
[code3l5t83b2]
wmaster0 Link encap:UNSPEC HWaddr 00-0E-8E-0F-68-D7-92-2F-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
[/code3l5t83b2]
it's HWaddr so long,what's mean?
is it performed as a AP?if not,who should performed as AP?
i use iwconfig to set the AP addr like this[code3l5t83b2]iwconfig wlan0 ap xx:xx:xx:xx:xx:xx[/code3l5t83b2]
but i don't known what's the BSSID.
in my network,there are a Ralink wireless Card and a TP-Link wireless card,i need the Ralink card performed as a AP,but it looks like Not.

IvD

26-11-2008 09:52:07

sorry,i don't understand the wmaster0 well.
[/quote2jp5ftjj]

wmaster0 can be ignored. You shouldn't touch it.


it's HWaddr so long,what's mean?
[/quote2jp5ftjj]

It only means the length of the MAC address wasn't properly set. Again it is not important, don't look at wmaster0.


is it performed as a AP?if not,who should performed as AP?
[/quote2jp5ftjj]

No. Use the search button on this forum to find various experiences by other people on how to enable master mode.


i use iwconfig to set the AP addr like this[code2jp5ftjj]iwconfig wlan0 ap xx:xx:xx:xx:xx:xx[/code2jp5ftjj]
but i don't known what's the BSSID.
[/quote2jp5ftjj]

The BSSID is the MAC address of the AP you are associating with.


in my network,there are a Ralink wireless Card and a TP-Link wireless card,i need the Ralink card performed as a AP,but it looks like Not.[/quote2jp5ftjj]

Use the search button on this forum to find various experiences by other people on how to enable master mode.
You will need at least rt2x00.git and hostapd. (both the latest snapshot)