Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#4144 - Raspberry Pi Zero W | wifi adhoc not working with HT20 mode #9133

Open
openwrt-bot opened this issue Nov 21, 2021 · 2 comments
Open
Labels

Comments

@openwrt-bot
Copy link

bittorf:

Just for documenting the issue for others:

tested with r18155 (2021-nov-21) the wifi interface
does not come up in adhoc mode when HT20 is enabled.

uci set wireless.radio0.htmode=HT20
wifi
=> not working

uci del wireless.radio0.htmode
wifi
=> OK/working

The relevent log collected with /lib/netifd/wireless/mac80211.sh
is here, it fails at the last 'iw' call:

rc:244 | iw dev wlan0 del command failed: No error information (-524) rc:0 | iw phy0 info rc:0 | iw reg get rc:0 | iw reg set US rc:161 | iw phy phy0 set antenna 0xffffffff 0xffffffff command failed: Not supported (-95) rc:161 | iw phy phy0 set antenna_gain 0 command failed: Not supported (-95) rc:251 | iw phy phy0 set distance 0 command failed: I/O error (-5) rc:251 | iw phy phy0 set txpower fixed 2300 command failed: I/O error (-5) rc:233 | iw phy phy0 interface add wlan0 type adhoc command failed: Too many open files in system (-23) rc:233 | iw phy phy0 interface add wlan0 type adhoc command failed: Too many open files in system (-23) rc:0 | iw dev wlan0 info rc:244 | iw dev wlan0 del command failed: No error information (-524) rc:0 | iw dev wlan0 set type ibss rc:234 | iw dev wlan0 ibss join ffintern.2GHz 2432 HT20 fixed-freq 02:ca:ff:ee:ba:be beacon-interval 250 mcast-rate 6 command failed: Invalid argument (-22)

without HT20 mode enabled:

[...]
rc:0 | iw dev wlan0 set type ibss
rc:0 | iw dev wlan0 ibss join ffintern.2GHz 2432 fixed-freq 02:ca:ff:ee:ba:be beacon-interval 250 mcast-rate 6

removing mcast-rate or beacon-interval does not change the behavior.

@openwrt-bot
Copy link
Author

bittorf:

the driver itself seems to report HT20 capabilities:

root@raspberrypi-zero-wh:/ iw phy phy0 info Wiphy phy0 wiphy index: 0 max # scan SSIDs: 10 max scan IEs length: 2048 bytes max # sched scan SSIDs: 0 max # match sets: 0 Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Available Antennas: TX 0 RX 0 Supported interface modes: * IBSS * managed * AP * P2P-client * P2P-GO * P2P-device Band 1: Capabilities: 0x1020 HT20 Static SM Power Save RX HT20 SGI No RX STBC Max AMSDU length: 3839 bytes DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 16 usec (0x07) HT TX/RX MCS rate indexes supported: 0-7 Frequencies: * 2412 MHz [1] (20.0 dBm) * 2417 MHz [2] (20.0 dBm) * 2422 MHz [3] (20.0 dBm) * 2427 MHz [4] (20.0 dBm) * 2432 MHz [5] (20.0 dBm) * 2437 MHz [6] (20.0 dBm) * 2442 MHz [7] (20.0 dBm) * 2447 MHz [8] (20.0 dBm) * 2452 MHz [9] (20.0 dBm) * 2457 MHz [10] (20.0 dBm) * 2462 MHz [11] (20.0 dBm) * 2467 MHz [12] (disabled) * 2472 MHz [13] (disabled) * 2484 MHz [14] (disabled) valid interface combinations: * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1, total <= 3, #channels <= 2 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1, total <= 4, #channels <= 1 max # scan plans: 1 max scan plan interval: -1 max scan plan iterations: 0 Supported extended features: * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records * [ 4WAY_HANDSHAKE_STA_PSK ]: 4-way handshake with PSK in station mode * [ 4WAY_HANDSHAKE_STA_1X ]: 4-way handshake with 802.1X in station mode * [ SAE_OFFLOAD ]: SAE offload support

@openwrt-bot
Copy link
Author

bittorf:

and here the full wireless config:

root@raspberrypi-zero-wh:/ uci show wireless wireless.radio0=wifi-device wireless.radio0.type='mac80211' wireless.radio0.country='US' wireless.radio0.frag='off' wireless.radio0.path='platform/soc/20300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1' wireless.radio0.chanbw='20' wireless.radio0.channel='5' wireless.radio0.txpower='23' wireless.radio0.beacon_int='250' wireless.@wifi-iface[0]=wifi-iface wireless.@wifi-iface[0].device='radio0' wireless.@wifi-iface[0].network='wlan' wireless.@wifi-iface[0].mode='adhoc' wireless.@wifi-iface[0].mcast_rate='6000' wireless.@wifi-iface[0].bssid='02:ca:ff:ee:ba:be' wireless.@wifi-iface[0].ssid='ffintern.2GHz'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant