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

ESP NG- Network with passphrase fails on linux openwrt host #567

Open
3 tasks done
BrelJordan opened this issue Jan 17, 2025 · 1 comment
Open
3 tasks done

ESP NG- Network with passphrase fails on linux openwrt host #567

BrelJordan opened this issue Jan 17, 2025 · 1 comment

Comments

@BrelJordan
Copy link

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

Create an access point with a Passphrase stations can connect to.

Hostapd config from esphosted's page:


interface=wlan0
driver=nl80211
ssid=MY_SSID
hw_mode=g
channel=6
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=SAE
wpa_passphrase=MY_PASSPHRASE
rsn_pairwise=CCMP
ieee80211w=2

Actual behavior (suspected bug)

The AP is created but without any password (authmode=0 ) and devices fail to connect because the host complains no key is given by the peer.

Terminal output:

root@MC-MNR:~# hostapd -ddd host.conf
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: authentication OK (open system)
wlan0: STA c2:f8:0b:3f:27:86 MLME: MLME-AUTHENTICATE.indication(c2:f8:0b:3f:27:86, OPEN_SYSTEM)
wlan0: STA c2:f8:0b:3f:27:86 MLME: MLME-DELETEKEYS.request(c2:f8:0b:3f:27:86)
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: No WPA/RSN IE in association request
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: authenticated
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: authentication OK (open system)
wlan0: STA c2:f8:0b:3f:27:86 MLME: MLME-AUTHENTICATE.indication(c2:f8:0b:3f:27:86, OPEN_SYSTEM)
wlan0: STA c2:f8:0b:3f:27:86 MLME: MLME-DELETEKEYS.request(c2:f8:0b:3f:27:86)
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: No WPA/RSN IE in association request
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: authenticated

esp32c3:

I (80665071) wifi:mode : softAP (f0:f5:bd:e9:c5:fc)
I (80665075) wifi:Total power save buffer number: 20
I (80665079) wifi:Init max length of beacon: 752/752
I (80665084) wifi:Init max length of beacon: 752/752
I (80665089) FW_CMD: Station stop
I (80665092) FW_CMD: softap started and disabled station mode
I (80665114) FW_MAIN: Get MAC command
I (80665154) FW_MAIN: Get Tx power command
I (80665194) FW_MAIN: Get Tx power command
I (80665254) FW_MAIN: Set multicast mac address list
I (80665304) FW_MAIN: disconnect request
I (80665304) FW_CMD: Disconnect request: reason [2], interface=1

I (80665354) FW_MAIN: Set multicast mac address list
I (80665424) FW_MAIN: Get Tx power command
I (80665474) FW_MAIN: Set IE command
I (80665474) FW_CMD: Setting IE type=4 len=24

I (80665474) BEACON_PROBE_HEAD: 0x3fcb9c2c   11 04 00 07 4d 59 5f 53  53 49 44 01 08 82 84 8b  |....MY_SSID.....|
I (80665483) BEACON_PROBE_HEAD: 0x3fcb9c3c   96 0c 12 18 24 03 01 06                           |....$...|
I (80665544) FW_MAIN: Set AP config command
I (80665544) FW_CMD: ap config ssid=MY_SSID ssid_len=7, pass= channel=6 authmode=0 hidden=0 bi=100 cipher=0

Error logs or terminal output

Terminal output:
root@MC-MNR:~# hostapd -ddd host.conf
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: authentication OK (open system)
wlan0: STA c2:f8:0b:3f:27:86 MLME: MLME-AUTHENTICATE.indication(c2:f8:0b:3f:27:86, OPEN_SYSTEM)
wlan0: STA c2:f8:0b:3f:27:86 MLME: MLME-DELETEKEYS.request(c2:f8:0b:3f:27:86)
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: No WPA/RSN IE in association request
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: authenticated
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: authentication OK (open system)
wlan0: STA c2:f8:0b:3f:27:86 MLME: MLME-AUTHENTICATE.indication(c2:f8:0b:3f:27:86, OPEN_SYSTEM)
wlan0: STA c2:f8:0b:3f:27:86 MLME: MLME-DELETEKEYS.request(c2:f8:0b:3f:27:86)
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: No WPA/RSN IE in association request
wlan0: STA c2:f8:0b:3f:27:86 IEEE 802.11: authenticated

esp32c3:

I (80665071) wifi:mode : softAP (f0:f5:bd:e9:c5:fc)
I (80665075) wifi:Total power save buffer number: 20
I (80665079) wifi:Init max length of beacon: 752/752
I (80665084) wifi:Init max length of beacon: 752/752
I (80665089) FW_CMD: Station stop
I (80665092) FW_CMD: softap started and disabled station mode
I (80665114) FW_MAIN: Get MAC command
I (80665154) FW_MAIN: Get Tx power command
I (80665194) FW_MAIN: Get Tx power command
I (80665254) FW_MAIN: Set multicast mac address list
I (80665304) FW_MAIN: disconnect request
I (80665304) FW_CMD: Disconnect request: reason [2], interface=1

I (80665354) FW_MAIN: Set multicast mac address list
I (80665424) FW_MAIN: Get Tx power command
I (80665474) FW_MAIN: Set IE command
I (80665474) FW_CMD: Setting IE type=4 len=24

I (80665474) BEACON_PROBE_HEAD: 0x3fcb9c2c   11 04 00 07 4d 59 5f 53  53 49 44 01 08 82 84 8b  |....MY_SSID.....|
I (80665483) BEACON_PROBE_HEAD: 0x3fcb9c3c   96 0c 12 18 24 03 01 06                           |....$...|
I (80665544) FW_MAIN: Set AP config command
I (80665544) FW_CMD: ap config ssid=MY_SSID ssid_len=7, pass= channel=6 authmode=0 hidden=0 bi=100 cipher=0

Steps to reproduce the behavior

1 On a linux host with the esphosted-ng kmod installed run:
hostapd -ddd host.conf

Project release version

commit hash: c79b7e1

System architecture

ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)

Operating system

Linux

Operating system version

openwrt 24

Shell

sh

Additional context

No response

@mantriyogesh
Copy link
Collaborator

Please attach the full textual logs as attachment:

  • esp:
    • idf.py flash monitor from startup
  • host
    • dmesg from system boot up
    • wpa supplicant or hostapd logs in debug

Also ensure that you use latest master at both esp and host.

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

No branches or pull requests

2 participants