mac80211 / rt2x00 / rt61 and adhoc status
Hi,
What is the expected status of the adhoc function ?
Have tried using the wpa_supplicant and got the -EBUSY from ieee80211_ioctl_siwmode().
Worked around that and got the rt61 to join an existing adhoc net, but no data flow.
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 and wpa_supplicant 0.5.9
2) rt2x00.git: Version 2.2.0 and wpa_supplicant 0.5.9
/Lars
Quoted 6 lines · Lars Ericsson
Hi,
What is the expected status of the adhoc function ?
Have tried using the
wpa_supplicantand got the-EBUSYfromieee80211_ioctl_siwmode().
As usual: The interface must be down when changing working mode.
Quoted 6 lines
Worked around that and got the rt61 to join an existing adhoc net, but no data flow.
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 andwpa_supplicant0.5.9
2) rt2x00.git: Version 2.2.0 andwpa_supplicant0.5.9
Are any beacons going out? Is there anything in the logs which indicates what is happening?
Ivo
Quoted 6 lines
Quoted 3 lines
Have tried using the
wpa_supplicantand got the-EBUSYfromieee80211_ioctl_siwmode().As usual: The interface must be down when changing working mode.
The initial mode is 2. I do not know the source of that mode, might be a default.
<7>[ 85.713782] LaE: ieee80211_ioctl_siwmode: type=2, sdata->vif.type=2
Between 85.713698 and 85.821832 device is opened (1=netif_running(dev))
<7>[ 85.713698] LaE: ieee80211_ioctl_siwmode: 0=netif_running(dev) <7>[ 85.713752] LaE: ieee80211_ioctl_siwmode: mode=2 <7>[ 85.713782] LaE: ieee80211_ioctl_siwmode: type=2, sdata->vif.type=2 <6>[ 85.713938] phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2561s.bin'. <6>[ 85.724265] firmware: requesting rt2561s.bin <6>[ 85.779042] phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.8. <7>[ 85.821654] LaE: ieee80211_ioctl_giwrange: enter; <7>[ 85.821832] LaE: ieee80211_ioctl_giwrange: 1=netif_running(dev)
When wpa supplicant set the adhoc mode=1/type=3 the device is running and fails
<7>[ 85.947991] LaE: ieee80211_ioctl_siwmode: mode=1 <7>[ 85.948134] LaE: ieee80211_ioctl_siwmode: type=3, sdata->vif.type=2 <7>[ 85.948433] LaE: ieee80211_ioctl_siwmode: type=3
My work around was to ignore this situation and continue the mode change.
Quoted 11 lines
Quoted 1 line
Worked around that and got the rt61 to join an existing
adhoc net, but no
Quoted 5 lines
data flow.
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 andwpa_supplicant0.5.9
2) rt2x00.git: Version 2.2.0 andwpa_supplicant0.5.9Are any beacons going out? Is there anything in the logs which indicates what is happening?
As you can se in the trace below, the configuration proceeds and the adhoc is created.
The warnon might give some clues.
=================================================================
Complete trace follows
=================================================================
<7>[ 6.591789] phy0 -> rt61pci_validate_eeprom: EEPROM recovery - NIC: 0xff80 <7>[ 6.591789] phy0 -> rt61pci_validate_eeprom: EEPROM recovery - Led: 0xe0ff <7>[ 6.592049] phy0 -> rt61pci_validate_eeprom: EEPROM recovery - RSSI OFFSET BG: 0x0000 <7>[ 6.592531] phy0 -> rt61pci_validate_eeprom: EEPROM recovery - RSSI OFFSET A: 0x0000 <6>[ 6.593020] phy0 -> rt2x00_set_chip: Info - Chipset detected - rt: 0301, rf: 0003, rev: 0002661b. <7>[ 6.619711] LaE: ieee80211_register_hw: type=1 <7>[ 6.619812] LaE: ieee80211_if_set_type: enter; <7>[ 6.619812] LaE: ieee80211_if_set_type: 0=netif_running(dev) <7>[ 6.620290] LaE: ieee80211_if_set_type: type=1 <7>[ 6.621016] phy0: Selected rate control algorithm 'pid' <7>[ 6.837403] LaE: ieee80211_if_add: type=2 <7>[ 6.837455] LaE: ieee80211_if_set_type: enter; <7>[ 6.837483] LaE: ieee80211_if_set_type: 0=netif_running(dev) <7>[ 6.837512] LaE: ieee80211_if_set_type: type=2 <6>[ 7.150755] eth0: DSPCFG accepted after 0 usec. <5>[ 7.151830] eth0: link up. <6>[ 7.151830] eth0: Setting full-duplex based on negotiated link capability. <7>[ 85.713213] LaE: ieee80211_ioctl_siwmode: enter; <7>[ 85.713698] LaE: ieee80211_ioctl_siwmode: 0=netif_running(dev) <7>[ 85.713752] LaE: ieee80211_ioctl_siwmode: mode=2 <7>[ 85.713782] LaE: ieee80211_ioctl_siwmode: type=2, sdata->vif.type=2 <6>[ 85.713938] phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2561s.bin'. <6>[ 85.724265] firmware: requesting rt2561s.bin <6>[ 85.779042] phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.8. <7>[ 85.821654] LaE: ieee80211_ioctl_giwrange: enter; <7>[ 85.821832] LaE: ieee80211_ioctl_giwrange: 1=netif_running(dev) <7>[ 85.832734] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.833103] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.833853] LaE: ieee80211_ioctl_siwencodeext: enter; <7>[ 85.834032] LaE: ieee80211_ioctl_siwencodeext: 1=netif_running(dev) <7>[ 85.834755] LaE: ieee80211_ioctl_siwencodeext: enter; <7>[ 85.834994] LaE: ieee80211_ioctl_siwencodeext: 1=netif_running(dev) <7>[ 85.835730] LaE: ieee80211_ioctl_siwencodeext: enter; <7>[ 85.835907] LaE: ieee80211_ioctl_siwencodeext: 1=netif_running(dev) <7>[ 85.836626] LaE: ieee80211_ioctl_siwencodeext: enter; <7>[ 85.836803] LaE: ieee80211_ioctl_siwencodeext: 1=netif_running(dev) <7>[ 85.837495] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.837714] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.839895] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.840074] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.944444] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.944814] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.945426] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.945794] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.947112] LaE: ieee80211_ioctl_siwap: enter; new AP is 00:00:00:00:00:00 <7>[ 85.947496] LaE: ieee80211_ioctl_siwap: 1=netif_running(dev) <7>[ 85.947686] LaE: ieee80211_ioctl_siwmode: enter; <7>[ 85.947842] LaE: ieee80211_ioctl_siwmode: 1=netif_running(dev) <7>[ 85.947991] LaE: ieee80211_ioctl_siwmode: mode=1 <7>[ 85.948134] LaE: ieee80211_ioctl_siwmode: type=3, sdata->vif.type=2 <7>[ 85.948433] LaE: ieee80211_ioctl_siwmode: type=3 <7>[ 85.948584] LaE: ieee80211_if_set_type: enter; <7>[ 85.948730] LaE: ieee80211_if_set_type: 1=netif_running(dev) <7>[ 85.948963] LaE: ieee80211_if_set_type: type=3 <7>[ 85.949657] LaE: ieee80211_ioctl_siwgenie: enter; <7>[ 85.949835] LaE: ieee80211_ioctl_siwgenie: 1=netif_running(dev) <7>[ 85.950009] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.950165] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.950333] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.950487] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.950654] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.950809] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.951055] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.951217] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.951385] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.951539] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.952524] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 85.952699] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 85.952874] LaE: ieee80211_ioctl_siwessid: enter; <7>[ 85.953082] LaE: ieee80211_ioctl_siwessid: 1=netif_running(dev) <7>[ 85.953241] LaE: ieee80211_ioctl_siwessid: ssid=VMC500; <7>[ 85.953392] ieee80211_sta_find_ibss: State 4 <7>[ 85.953529] ieee80211_sta_active_ibss: <7>[ 87.951049] ieee80211_sta_work: State 4 <7>[ 87.951095] ieee80211_sta_find_ibss: State 4 <7>[ 87.951120] ieee80211_sta_active_ibss: <7>[ 89.346901] phy0: Adding new IBSS station 00:1c:bf:a8:70:ee (dev=wlan0) <4>[ 89.347189] ------------[ cut here ]------------ <4>[ 89.352754] WARNING: at net/mac80211/rate.h:153 rate_control_pid_rate_init+0x70/0x90 [mac80211]() <4>[ 89.363439] Modules linked in: arc4 ecb crypto_blkcipher cryptomgr crypto_algapi rt61pci crc_itu_t rt2x00pci rt2x00lib firmware_class eeprom_93cx6 mac80211 cfg80211 <4>[ 89.382330] Pid: 0, comm: swapper Not tainted 2.6.26-lae #14 <4>[ 89.388129] [<c011c9bf>] warn_on_slowpath+0x5f/0x90 <4>[ 89.394999] [<c0114efe>] __wake_up_common+0x3e/0x70 <4>[ 89.401178] [<c0119d30>] __wake_up+0x50/0x90 <4>[ 89.406426] [<c011d30b>] wake_up_klogd+0x3b/0x40 <4>[ 89.412055] [<c011da6a>] vprintk+0x34a/0x3e0 <4>[ 89.418085] [<c01f7552>] scnprintf+0x22/0x30 <4>[ 89.423334] [<d086e830>] rate_control_pid_rate_init+0x70/0x90 [mac80211] <4>[ 89.431615] [<d085a9bf>] ieee80211_ibss_add_sta+0xbf/0x110 [mac80211] <4>[ 89.439545] [<d0865464>] __ieee80211_rx_handle_packet+0x744/0x860 [mac80211] <4>[ 89.448202] [<c011e549>] profile_tick+0x49/0x90 <4>[ 89.453802] [<d08648e8>] ieee80211_rx_irqsafe+0x38/0x80 [mac80211] <4>[ 89.461430] [<d082e195>] rt2x00lib_rxdone+0x195/0x240 [rt2x00lib] <4>[ 89.467693] [<c028b089>] dev_alloc_skb+0x19/0x30 <4>[ 89.473409] [<d08674f1>] __ieee80211_rx+0x2c1/0x590 [mac80211] <4>[ 89.481034] [<d0854a2f>] ieee80211_tasklet_handler+0x11f/0x130 [mac80211] <4>[ 89.489406] [<c0121db3>] tasklet_action+0x33/0x70 <4>[ 89.495165] [<c0121ce4>] __do_softirq+0x54/0xb0 <4>[ 89.501270] [<c0121d75>] do_softirq+0x35/0x40 <4>[ 89.506603] [<c0121f17>] irq_exit+0x37/0x40 <4>[ 89.511725] [<c0105781>] do_IRQ+0x51/0xa0 <4>[ 89.517304] [<c0101dd7>] __switch_to+0x27/0x150 <4>[ 89.522851] [<c0101b40>] default_idle+0x0/0x40 <4>[ 89.527795] [<c010395b>] common_interrupt+0x23/0x28 <4>[ 89.533764] [<c0101b40>] default_idle+0x0/0x40 <4>[ 89.539197] [<c0101b69>] default_idle+0x29/0x40 <4>[ 89.544752] [<c0101a6b>] cpu_idle+0x2b/0x90 <4>[ 89.549895] ======================= <4>[ 89.554143] ---[ end trace cd78b4bb496834c6 ]--- <7>[ 89.967289] ieee80211_sta_work: State 4 <7>[ 89.967333] ieee80211_sta_find_ibss: State 4 <7>[ 89.967359] ieee80211_sta_active_ibss: <7>[ 90.972263] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 90.972321] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 90.972531] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 90.972569] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 90.972992] LaE: ieee80211_ioctl_siwap: enter; new AP is 00:00:00:00:00:00 <7>[ 90.973034] LaE: ieee80211_ioctl_siwap: 1=netif_running(dev) <7>[ 90.973079] LaE: ieee80211_ioctl_siwmode: enter; <7>[ 90.973108] LaE: ieee80211_ioctl_siwmode: 1=netif_running(dev) <7>[ 90.973138] LaE: ieee80211_ioctl_siwmode: mode=1 <7>[ 90.973167] LaE: ieee80211_ioctl_siwmode: type=3, sdata->vif.type=3 <7>[ 90.973246] LaE: ieee80211_ioctl_siwgenie: enter; <7>[ 90.973278] LaE: ieee80211_ioctl_siwgenie: 1=netif_running(dev) <7>[ 90.973325] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 90.973353] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 90.973393] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 90.973420] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 90.973460] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 90.973487] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 90.973527] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 90.973554] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 90.973594] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 90.973622] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 90.973806] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 90.973844] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 90.973893] LaE: ieee80211_ioctl_siwessid: enter; <7>[ 90.973921] LaE: ieee80211_ioctl_siwessid: 1=netif_running(dev) <7>[ 90.973952] LaE: ieee80211_ioctl_siwessid: ssid=VMC500; <7>[ 90.973984] ieee80211_sta_find_ibss: State 4 <7>[ 90.974008] ieee80211_sta_active_ibss: <7>[ 92.971242] ieee80211_sta_work: State 4 <7>[ 92.971288] ieee80211_sta_find_ibss: State 4 <7>[ 92.971313] ieee80211_sta_active_ibss: <7>[ 94.971313] ieee80211_sta_work: State 4 <7>[ 94.971359] ieee80211_sta_find_ibss: State 4 <7>[ 94.971385] ieee80211_sta_active_ibss: <7>[ 95.976449] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 95.976947] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 95.977218] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 95.977257] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 95.977685] LaE: ieee80211_ioctl_siwap: enter; new AP is 00:00:00:00:00:00 <7>[ 95.977727] LaE: ieee80211_ioctl_siwap: 1=netif_running(dev) <7>[ 95.977772] LaE: ieee80211_ioctl_siwmode: enter; <7>[ 95.977801] LaE: ieee80211_ioctl_siwmode: 1=netif_running(dev) <7>[ 95.977831] LaE: ieee80211_ioctl_siwmode: mode=1 <7>[ 95.977860] LaE: ieee80211_ioctl_siwmode: type=3, sdata->vif.type=3 <7>[ 95.977941] LaE: ieee80211_ioctl_siwgenie: enter; <7>[ 95.977973] LaE: ieee80211_ioctl_siwgenie: 1=netif_running(dev) <7>[ 95.978020] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 95.978048] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 95.978088] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 95.978116] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 95.978155] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 95.978183] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 95.978222] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 95.978250] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 95.978289] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 95.978317] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 95.978502] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 95.978540] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 95.978588] LaE: ieee80211_ioctl_siwessid: enter; <7>[ 95.978617] LaE: ieee80211_ioctl_siwessid: 1=netif_running(dev) <7>[ 95.978648] LaE: ieee80211_ioctl_siwessid: ssid=VMC500; <7>[ 95.978679] ieee80211_sta_find_ibss: State 4 <7>[ 95.978704] ieee80211_sta_active_ibss: <7>[ 97.975428] ieee80211_sta_work: State 4 <7>[ 97.975473] ieee80211_sta_find_ibss: State 4 <7>[ 97.975499] ieee80211_sta_active_ibss: <7>[ 98.122847] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 98.122906] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 98.123036] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 98.123073] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 98.123198] LaE: ieee80211_ioctl_siwauth: enter; <7>[ 98.123234] LaE: ieee80211_ioctl_siwauth: 1=netif_running(dev) <7>[ 98.124623] LaE: ieee80211_ioctl_siwap: enter; new AP is 00:00:00:00:00:00 <7>[ 98.124683] LaE: ieee80211_ioctl_siwap: 1=netif_running(dev)
Quoted 10 lines · Lars Ericsson
Quoted 6 lines
Quoted 3 lines
Have tried using the
wpa_supplicantand got the-EBUSYfromieee80211_ioctl_siwmode().As usual: The interface must be down when changing working mode.
The initial mode is 2. I do not know the source of that mode, might be a default.
<7>[ 85.713782] LaE: ieee80211_ioctl_siwmode: type=2, sdata->vif.type=2
that is managed mode.
Quoted 12 lines
Between 85.713698 and 85.821832 device is opened (1=netif_running(dev))
<7>[ 85.713698] LaE: ieee80211_ioctl_siwmode: 0=netif_running(dev) <7>[ 85.713752] LaE: ieee80211_ioctl_siwmode: mode=2 <7>[ 85.713782] LaE: ieee80211_ioctl_siwmode: type=2, sdata->vif.type=2 <6>[ 85.713938] phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2561s.bin'. <6>[ 85.724265] firmware: requesting rt2561s.bin <6>[ 85.779042] phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.8. <7>[ 85.821654] LaE: ieee80211_ioctl_giwrange: enter; <7>[ 85.821832] LaE: ieee80211_ioctl_giwrange: 1=netif_running(dev)
Quoted 2 lines
When wpa supplicant set the adhoc mode=1/type=3 the device is running and fails
to quota myself: "The interface must be down when changing working mode."
Quoted 5 lines
<7>[ 85.947991] LaE: ieee80211_ioctl_siwmode: mode=1 <7>[ 85.948134] LaE: ieee80211_ioctl_siwmode: type=3, sdata->vif.type=2 <7>[ 85.948433] LaE: ieee80211_ioctl_siwmode: type=3My work around was to ignore this situation and continue the mode change.
that is not correct, as I've stated already: The interface must be down when changing working mode.
Quoted 11 lines
Quoted 7 lines
Quoted 3 lines
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 andwpa_supplicant0.5.9
2) rt2x00.git: Version 2.2.0 andwpa_supplicant0.5.9Are any beacons going out? Is there anything in the logs which indicates what is happening?
As you can se in the trace below, the configuration proceeds and the adhoc is created.
The warnon might give some clues.
So how about those beacons? are they getting out?
ivo
Quoted 30 lines · Lars Ericsson
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Have tried using the
wpa_supplicantand got the-EBUSYfromieee80211_ioctl_siwmode().As usual: The interface must be down when changing working mode.
The initial mode is 2. I do not know the source of that
mode, might be a
Quoted 2 lines
default.
<7>[ 85.713782] LaE: ieee80211_ioctl_siwmode: type=2,sdata->vif.type=2
that is managed mode.
Quoted 1 line
Between 85.713698 and 85.821832 device is opened
(1=netif_running(dev))
Quoted 3 lines
<7>[ 85.713698] LaE: ieee80211_ioctl_siwmode: 0=netif_running(dev) <7>[ 85.713752] LaE: ieee80211_ioctl_siwmode: mode=2 <7>[ 85.713782] LaE: ieee80211_ioctl_siwmode: type=2,sdata->vif.type=2
Quoted 4 lines
<6>[ 85.713938] phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2561s.bin'. <6>[ 85.724265] firmware: requesting rt2561s.bin <6>[ 85.779042] phy0 -> rt2x00lib_request_firmware: Info- Firmware
Quoted 3 lines
detected - version: 0.8.
<7>[ 85.821654] LaE: ieee80211_ioctl_giwrange: enter; <7>[ 85.821832] LaE: ieee80211_ioctl_giwrange:
Quoted 8 lines
1=netif_running(dev)
Quoted 2 lines
When wpa supplicant set the adhoc mode=1/type=3 the device
is running and
Quoted 1 line
fails
to quota myself: "The interface must be down when changing working mode."
OK, I got that ;)
Quoted 12 lines
Quoted 3 lines
<7>[ 85.947991] LaE: ieee80211_ioctl_siwmode: mode=1 <7>[ 85.948134] LaE: ieee80211_ioctl_siwmode: type=3,sdata->vif.type=2
Quoted 3 lines
<7>[ 85.948433] LaE: ieee80211_ioctl_siwmode: type=3My work around was to ignore this situation and continue
the mode change.
that is not correct, as I've stated already: The interface must be down when changing working mode.
I have to check if it is the mac80211 or the wpa_supplicant that is doing wrong.
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 andwpa_supplicant0.5.9
2) rt2x00.git: Version 2.2.0 andwpa_supplicant0.5.9Are any beacons going out? Is there anything in the logs which indicates what is happening?
Quoted 7 lines
Quoted 1 line
As you can se in the trace below, the configuration
proceeds and the adhoc
Quoted 2 lines
is created.
The warnon might give some clues.So how about those beacons? are they getting out?
I will check that and come back as soon as the first issue is sorted out. I might broke some logic when I was trying to change mode for an open interface.
/Lars
Quoted 7 lines · Lars Ericsson
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Have tried using the
wpa_supplicantand got the-EBUSYfromieee80211_ioctl_siwmode().As usual: The interface must be down when changing working mode.
OK, I found the problem.
When the wpa_supplicant start it open the interface with mode=0. wpa_driver_wext_set_mode() makes iwr.u.mode = mode ? IW_MODE_ADHOC :IW_MODE_INFRA
When the mode, at a later time, is actually set with wpa_cli, the device is open and will reject the setting.
This must be a BUG in the wpa_supplicant.
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 andwpa_supplicant0.5.9
2) rt2x00.git: Version 2.2.0 andwpa_supplicant0.5.9Are any beacons going out? Is there anything in the logs which indicates what is happening?
Quoted 7 lines
Quoted 1 line
As you can se in the trace below, the configuration
proceeds and the adhoc
Quoted 2 lines
is created.
The warnon might give some clues.So how about those beacons? are they getting out?
After patching the wpa_suplicant (0.5.9) adhoc works.
When first started, as the only part in the adhoc net, the driver just scans around for other adhoc members.
This happen in mac80211 state 4 and no beacons are sent, as far as I can tell. Only probe requests are sent.
When an other node (N2) shows up in the same adhoc net work, N2 starts sending beacons immediately.
The RT61 catch that and merge that ibss, switch to state 5 and all is fine. At this time ping works in both directions.
When removing the second note, leaving the RT61 alone, RT61 starts sending beacons, still in state 5.
/Lars
Quoted 30 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 andwpa_supplicant0.5.9
2) rt2x00.git: Version 2.2.0 andwpa_supplicant0.5.9Are any beacons going out? Is there anything in the logs which indicates what is happening?
Quoted 7 lines
Quoted 1 line
As you can se in the trace below, the configuration
proceeds and the adhoc
Quoted 2 lines
is created.
The warnon might give some clues.So how about those beacons? are they getting out?
After patching the
wpa_suplicant(0.5.9) adhoc works. When first started, as the only part in the adhoc net, the driver just scans
around for other adhoc members.
This happen in mac80211 state 4 and no beacons are sent, as far as I can
tell. Only probe requests are sent.When an other node (N2) shows up in the same adhoc net work, N2 starts sending beacons immediately.
The RT61 catch that and merge that ibss, switch to state 5 and all is fine.
At this time ping works in both directions.
Quoted 3 lines
When removing the second note, leaving the RT61 alone, RT61 starts sending
beacons, still in state 5.
The reason for the above behaviour are timeouts.
- Mac80211 will create an ibss after 20 seconds probing for existing ibss.
- Wpa_supplicant will restart this timer every 5 second ....
Changing the wpa timer will make the rt61 start sending beacons even if no other STA is available.
I think that wpa_supplicant 0.5.10 addresses this issue, I will check and come back.
/Lars
Quoted 5 lines · Lars Ericsson
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 andwpa_supplicant0.5.9
2) rt2x00.git: Version 2.2.0 andwpa_supplicant0.5.9=20
Are any beacons going out? Is there anything in the logs whic=
h
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 2 lines
indicates what is happening?
=20=20
As you can se in the trace below, the configuration=20proceeds and the adhoc
Quoted 2 lines
is created.
The warnon might give some clues.=20
So how about those beacons? are they getting out?
=20
Quoted 10 lines
Quoted 10 lines
=20
After patching thewpa_suplicant(0.5.9) adhoc works. When first started, as the only part in the adhoc net, the=20 driver just scans
around for other adhoc members.
This happen in mac80211 state 4 and no beacons are sent, as=20 far as I can
tell. Only probe requests are sent.
=20
When an other node (N2) shows up in the same adhoc net work, N2 sta=
rts
Quoted 11 lines
Quoted 8 lines
sending beacons immediately.
The RT61 catch that and merge that ibss, switch to state 5=20 and all is fine.
At this time ping works in both directions.
=20
When removing the second note, leaving the RT61 alone, RT61=20 starts sending
beacons, still in state 5.=20
The reason for the above behaviour are timeouts.
- Mac80211 will create an ibss after 20 seconds probing for existing =
ibss.
Quoted 3 lines
-
Wpa_supplicantwill restart this timer every 5 second .... =20
Changing the wpa timer will make the rt61 start sending beacons even =
if no
Quoted 3 lines
other STA is available.
=20
I think thatwpa_supplicant0.5.10 addresses this issue, I will check=
and
Quoted 1 line
come back.
If fixed your issues about a month or two ago. Either use wpa_supplicant 0.6.4 and a 2.6.26 kernel, or else grab the following patches and apply locally:
wpa_supplicant (committed to 0.6.x):
[PATCH] wpa_supplicant: give adhoc associations a bit more time =EF=BB=BF[PATCH v2] wext: handle mode switches correctly for mac80211
kernel (SHA1s from wireless-testing.git, both in 2.6.26):872ba53395b2a8be08c3ea2d39e225e5b4a8cb40 mac80211: decrease IBSS creati= on latency507b06d0622480f8026d49a94f86068bb0fd6ed6 mac80211: send association eve= nt on IBSS create
You'd need to backport the wpa_supplicant patches to 0.5.x, or else pok= e
Jouni and maybe he'll backport them for you. I do want to get them int= o
0.5.x as well.
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 84 lines · Lars Ericsson
Quoted 72 lines
-----Original Message-----
From: Dan Williams [mailto:[email protected]]
Sent: den 18 augusti 2008 16:34
To: Lars Ericsson
Cc: 'Ivo van Doorn'; [email protected]; [email protected]; [email protected]
Subject: RE: [Rt2400-devel] mac80211 / rt2x00 / rt61 and adhoc statusQuoted 5 lines · Lars Ericsson
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 andwpa_supplicant0.5.9
2) rt2x00.git: Version 2.2.0 andwpa_supplicant0.5.9Are any beacons going out? Is there anything in the
logs which
Quoted 19 lines
Quoted 19 lines
Quoted 10 lines
Quoted 4 lines
Quoted 2 lines
indicates what is happening?
As you can se in the trace below, the configuration
proceeds and the adhoc
Quoted 2 lines
is created.
The warnon might give some clues.So how about those beacons? are they getting out?
After patching the
wpa_suplicant(0.5.9) adhoc works. When first started, as the only part in the adhoc net, the driver just scans
around for other adhoc members.
This happen in mac80211 state 4 and no beacons are sent, as far as I can
tell. Only probe requests are sent.Quoted 1 line
Quoted 1 line
When an other node (N2) shows up in the same adhoc net
work, N2 starts
Quoted 11 lines
Quoted 8 lines
sending beacons immediately.
The RT61 catch that and merge that ibss, switch to state 5 and all is fine.
At this time ping works in both directions.When removing the second note, leaving the RT61 alone, RT61 starts sending
beacons, still in state 5.The reason for the above behaviour are timeouts.
- Mac80211 will create an ibss after 20 seconds probing forexisting ibss.
Quoted 3 lines
-
Wpa_supplicantwill restart this timer every 5 second ....Changing the wpa timer will make the rt61 start sending
beacons even if no
Quoted 3 lines
other STA is available.
I think that
wpa_supplicant0.5.10 addresses this issue, Iwill check and
Quoted 1 line
come back.
If fixed your issues about a month or two ago. Either use
wpa_supplicant0.6.4 and a 2.6.26 kernel, or else grab the following patches and apply locally:
wpa_supplicant(committed to 0.6.x):
[PATCH]wpa_supplicant: give adhoc associations a bit more time ?[PATCH v2] wext: handle mode switches correctly for mac80211kernel (SHA1s from wireless-testing.git, both in 2.6.26):
872ba53395b2a8be08c3ea2d39e225e5b4a8cb40mac80211: decrease IBSS creation latency507b06d0622480f8026d49a94f86068bb0fd6ed6mac80211: send association event on IBSS createQuoted 6 lines
You'd need to backport the
wpa_supplicantpatches to 0.5.x, or else poke
Jouni and maybe he'll backport them for you. I do want to get them into
0.5.x as well.OK, thanks for the commits and prompt reply.
I did poke around before I started debugging but did not found any useful info.
Sorry for asking already ready solved questions.
Quoted 6 lines
I have backported the patches to 0.5.9 and they works fine, as far as I can tell on 2.6.26.
I can drop them here if they are of interest. I also vote for putting them into 0.5.xJouni; would that be possible ?
Jouni, if you like I could run through current git HEAD and identify some easy candidates for backporting to 0.5.x, and send the 0.6 commit ids to the hostap lists for you along with what needs to be done to backport the patch.
Dan
Quoted 72 lines
-----Original Message-----
From: Dan Williams [mailto:[email protected]]
Sent: den 18 augusti 2008 16:34
To: Lars Ericsson
Cc: 'Ivo van Doorn'; [email protected]; [email protected]; [email protected]
Subject: RE: [Rt2400-devel] mac80211 / rt2x00 / rt61 and adhoc statusQuoted 5 lines · Lars Ericsson
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Two tests cases, but same behaviour:
1) Linx.git: 2.6.26 andwpa_supplicant0.5.9
2) rt2x00.git: Version 2.2.0 andwpa_supplicant0.5.9Are any beacons going out? Is there anything in the
logs which
Quoted 19 lines
Quoted 19 lines
Quoted 10 lines
Quoted 4 lines
Quoted 2 lines
indicates what is happening?
As you can se in the trace below, the configuration
proceeds and the adhoc
Quoted 2 lines
is created.
The warnon might give some clues.So how about those beacons? are they getting out?
After patching the
wpa_suplicant(0.5.9) adhoc works. When first started, as the only part in the adhoc net, the driver just scans
around for other adhoc members.
This happen in mac80211 state 4 and no beacons are sent, as far as I can
tell. Only probe requests are sent.Quoted 1 line
Quoted 1 line
When an other node (N2) shows up in the same adhoc net
work, N2 starts
Quoted 11 lines
Quoted 8 lines
sending beacons immediately.
The RT61 catch that and merge that ibss, switch to state 5 and all is fine.
At this time ping works in both directions.When removing the second note, leaving the RT61 alone, RT61 starts sending
beacons, still in state 5.The reason for the above behaviour are timeouts.
- Mac80211 will create an ibss after 20 seconds probing forexisting ibss.
Quoted 3 lines
-
Wpa_supplicantwill restart this timer every 5 second ....Changing the wpa timer will make the rt61 start sending
beacons even if no
Quoted 3 lines
other STA is available.
I think that
wpa_supplicant0.5.10 addresses this issue, Iwill check and
Quoted 1 line
come back.
If fixed your issues about a month or two ago. Either use
wpa_supplicant0.6.4 and a 2.6.26 kernel, or else grab the following patches and apply locally:
wpa_supplicant(committed to 0.6.x):
[PATCH]wpa_supplicant: give adhoc associations a bit more time ?[PATCH v2] wext: handle mode switches correctly for mac80211kernel (SHA1s from wireless-testing.git, both in 2.6.26):
872ba53395b2a8be08c3ea2d39e225e5b4a8cb40mac80211: decrease IBSS creation latency507b06d0622480f8026d49a94f86068bb0fd6ed6mac80211: send association event on IBSS create
Quoted 6 lines
You'd need to backport the
wpa_supplicantpatches to 0.5.x, or else poke
Jouni and maybe he'll backport them for you. I do want to get them into
0.5.x as well.
OK, thanks for the commits and prompt reply.
I did poke around before I started debugging but did not found any useful info.
Sorry for asking already ready solved questions.
I have backported the patches to 0.5.9 and they works fine, as far as I can tell on 2.6.26.
I can drop them here if they are of interest. I also vote for putting them into 0.5.x
Jouni; would that be possible ?
/Lars
Quoted 7 lines · Dan Williams
Quoted 6 lines · Lars Ericsson
I have backported the patches to 0.5.9 and they works fine, as far as I can tell on 2.6.26.
I can drop them here if they are of interest. I also vote for putting them into 0.5.xJouni; would that be possible ?
Sure. I'm usually merging all bug fixes from 0.6.x into the 0.5.x releases.
Quoted 4 lines
Jouni, if you like I could run through current git HEAD and identify some easy candidates for backporting to 0.5.x, and send the 0.6 commit ids to the hostap lists for you along with what needs to be done to backport the patch.
If the commit messages are clear, i.e., it is obvious that the changes are bug fixes, I should be able to find these without problems. If there is any unclarity on the status of the changes, a list could be helpful.
Whenever I'm preparing a new release from a stable branch, I will go through the git tree and pick all changes that look like bug fixes (with more filtering for 0.4.x and 0.3.x to only get critical fixes). With that list, I'm going to be merging the changes in order into the stable branch. I would expect that the changes discussed here would fall into this process for automatic (well, with some manual labor ;-) inclusion into 0.5.x.
Signature · 1 line
Jouni Malinen PGP id EFC895FA