Rany Hany
913368a223
hostapd: add support for SAE in PPSK option
...
This patch allows the use of SAE when using PPSK after
https://w1.fi/cgit/hostap/commit/?id=fcbdaae8a52e542705a651ee78b39b02935fda20
added support for it.
It also implements a fix so that this option works with SAE. The reason this
doesn't work out of the box is because OpenWRT deviates from hostapd defaults
by setting `sae_pwe` option to 2 which makes this mode not function properly
(results in every auth attempt being denied).
That issue was addressed by not overriding hostapd's default for the `sae_pwe`
option when the PPSK option is in use. This should be fine because hostapd's
test cases specifically test this mode with the default SAE parameters. See:
https://w1.fi/cgit/hostap/commit/?id=c34b35b54e81dbacd9dee513b74604c87f93f6a3
Signed-off-by: Rany Hany <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/16343
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-20 19:27:08 +02:00
Felix Fietkau
c1e43c36b4
wifi-scripts: add better defaults for 6 GHz interop
...
Indicate stationary AP and set default 6G regulatory power type to indoor
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-10-02 18:17:26 +02:00
John Crispin
b506a305fe
wifi-scripts: populate default wifi credentials and country code from board.json
...
Signed-off-by: John Crispin <john@phrozen.org>
2024-10-02 15:41:33 +02:00
Janusz Dziedzic
b478b7b1f7
wifi-scripts: detect and configure EHT
...
Check if EHT/11BE supported, configure in board.json
and config/wireless.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
2024-10-02 15:12:18 +02:00
Janusz Dziedzic
c201905d05
wifi-scripts: mac80211.sh: enable EHT320
...
For EHT320 we should also enable HE160.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
2024-10-02 15:12:18 +02:00
Janusz Dziedzic
42185bf429
wifi-scripts: mac80211.sh: allow EHT* sets
...
Allow to configure 80211BE.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
2024-10-02 15:12:18 +02:00
Lev A. Melnikovsky
b0aecfaa4f
hostapd-common: add missing ingredients for standalone EAP server
...
Namely radius_server_auth_port and radius_server_clients arguments. Below is a working config example:
config wifi-iface 'enterprise1'
option device 'radio1'
option mode 'ap'
option network 'lan'
option ssid 'openwrt'
option encryption 'wpa2'
option dh_file '/etc/hostapd/dh.pem'
option eap_server '1'
option eap_user_file '/etc/hostapd/eap_user'
option ca_cert '/etc/hostapd/ca.pem'
option server_cert '/etc/hostapd/server.crt'
option private_key '/etc/hostapd/server.key'
option radius_server_clients '/etc/hostapd/radius_clients'
option radius_server_auth_port 1812
config wifi-iface 'enterprise2'
option device 'radio2'
option mode 'ap'
option network 'lan'
option ssid 'openwrt'
option encryption 'wpa2'
option dh_file '/etc/hostapd/dh.pem'
option auth_server '127.0.0.1'
option auth_secret 'radius_secret'
option auth_cache '0'
Signed-off-by: Lev A. Melnikovsky <melnikovsky@gmail>
Link: https://github.com/openwrt/openwrt/pull/16112
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-22 23:25:14 +02:00
Felix Fietkau
81a48e7d1a
wpa_supplicant: fix num_global_macaddr handling
...
Pass num_global_macaddr via ubus in the top level config_set call
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-09-21 20:33:45 +02:00
Sarah Maedel
8de185a176
hostapd: fix anqp_3gpp_cell_net list delimiter
...
This patch fixes the list delimiter between 3GPP networks
passed to hostapd.
> list iw_anqp_3gpp_cell_net '262,001'
> list iw_anqp_3gpp_cell_net '262,002'
When passing a list of "iw_anqp_3gpp_cell_net" parameters via UCI,
hostapd would crash at startup:
> daemon.err hostapd: Line 73: Invalid anqp_3gpp_cell_net: 262,001:262,002
Using a semicolon as a delimiter, hostapd will start as expected.
Signed-off-by: Sarah Maedel <git@tbspace.de>
2024-08-28 11:57:23 +02:00
Gioacchino Mazzurco
e80520197c
hostapd: Add support for APuP
...
Add support for hostapd Access Point Micro Peering
Signed-off-by: Gioacchino Mazzurco <gio@polymathes.cc>
Link: https://gitlab.com/g10h4ck/hostap/-/commits/APuP
Link: https://github.com/openwrt/openwrt/pull/15442
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-08-13 00:28:32 +02:00
Sean Khan
d648ee4c58
wifi-scripts: ensure get_freq returns int (iw-6.9)
...
With `iw` version 6.9 frequencies are now being reported as float,
which is incompatible with wpa_supplicant's config option 'frequency'
which expects an integer.
iwinfo phy0 info output:
Version: 5.19
```
Frequencies:
* 5180 MHz [36] (30.0 dBm)
* 5200 MHz [40] (30.0 dBm)
* 5220 MHz [44] (30.0 dBm)
* 5240 MHz [48] (30.0 dBm)
* 5260 MHz [52] (24.0 dBm)
* 5280 MHz [56] (24.0 dBm)
* 5300 MHz [60] (24.0 dBm)
* 5320 MHz [64] (24.0 dBm)
* 5500 MHz [100] (24.0 dBm)
* 5520 MHz [104] (24.0 dBm)
* 5540 MHz [108] (24.0 dBm)
* 5560 MHz [112] (24.0 dBm)
* 5580 MHz [116] (24.0 dBm)
* 5600 MHz [120] (24.0 dBm)
* 5620 MHz [124] (24.0 dBm)
* 5640 MHz [128] (24.0 dBm)
* 5660 MHz [132] (24.0 dBm)
* 5680 MHz [136] (24.0 dBm)
* 5700 MHz [140] (24.0 dBm)
* 5720 MHz [144] (24.0 dBm)
* 5745 MHz [149] (30.0 dBm)
* 5765 MHz [153] (30.0 dBm)
* 5785 MHz [157] (30.0 dBm)
* 5805 MHz [161] (30.0 dBm)
* 5825 MHz [165] (30.0 dBm)
* 5845 MHz [169] (disabled)
* 5865 MHz [173] (disabled)
* 5885 MHz [177] (disabled)
```
Version: 6.9
```
Frequencies:
* 5180.0 MHz [36] (30.0 dBm)
* 5200.0 MHz [40] (30.0 dBm)
* 5220.0 MHz [44] (30.0 dBm)
* 5240.0 MHz [48] (30.0 dBm)
* 5260.0 MHz [52] (24.0 dBm)
* 5280.0 MHz [56] (24.0 dBm)
* 5300.0 MHz [60] (24.0 dBm)
* 5320.0 MHz [64] (24.0 dBm)
* 5500.0 MHz [100] (24.0 dBm)
* 5520.0 MHz [104] (24.0 dBm)
* 5540.0 MHz [108] (24.0 dBm)
* 5560.0 MHz [112] (24.0 dBm)
* 5580.0 MHz [116] (24.0 dBm)
* 5600.0 MHz [120] (24.0 dBm)
* 5620.0 MHz [124] (24.0 dBm)
* 5640.0 MHz [128] (24.0 dBm)
* 5660.0 MHz [132] (24.0 dBm)
* 5680.0 MHz [136] (24.0 dBm)
* 5700.0 MHz [140] (24.0 dBm)
* 5720.0 MHz [144] (24.0 dBm)
* 5745.0 MHz [149] (30.0 dBm)
* 5765.0 MHz [153] (30.0 dBm)
* 5785.0 MHz [157] (30.0 dBm)
* 5805.0 MHz [161] (30.0 dBm)
* 5825.0 MHz [165] (30.0 dBm)
* 5845.0 MHz [169] (disabled)
* 5865.0 MHz [173] (disabled)
* 5885.0 MHz [177] (disabled)
```
Error reported from wpa_supplicant
```console
Fri Jun 21 14:07:22 2024 daemon.err wpa_supplicant[2866]: Line 10: invalid number "5320.0"
Fri Jun 21 14:07:22 2024 daemon.err wpa_supplicant[2866]: Line 10: failed to parse frequency '5320.0'.
Fri Jun 21 14:07:22 2024 daemon.err wpa_supplicant[2866]: Line 16: failed to parse network block.
Fri Jun 21 14:07:22 2024 daemon.err wpa_supplicant[2866]: Failed to read or parse configuration '/var/run/wpa_supplicant-phy1-mesh0.conf'.
```
This affects mesh, adhoc, and client-mode WDS.
Until hostapd/wpa_supplicant is updated (or patched) to support float
frequencies, ensure `get_freq` prints out an integer.
Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/15770
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-06-22 11:34:46 +02:00
Felix Fietkau
4a3ed518b2
wifi-scripts: rewrite wifi detect code in ucode
...
Rely entirely on /etc/board.json instead of screen scraping iw cli output
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-06-21 11:52:26 +02:00
Paweł Owoc
a91b79fd04
mac80211: add missing config for third 160MHz width for 5GHz radio
...
Without this configuration it is not possible to run the radio using HE160 on channels 149-177.
Fixes : #14906
Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
2024-03-23 16:57:24 +01:00
Hauke Mehrtens
5df7a78e82
wifi-scripts: Support HE Iftypes with multiple entries
...
With mac80211_hwsim I have seen such entries in OpenWrt 22.03:
HE Iftypes: managed, AP
The mac80211.sh script did not detect the entry and failed. Allow
arbitrary other entries before to fix this problem.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-02-22 21:45:44 +01:00
Eneas U de Queiroz
472312f83f
wifi-scripts: fix FILS AKM selection with EAP-192
...
Fix netifd hostapd.sh selection of FILS-SHA384 algorithm with eap-192.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2024-02-17 08:36:48 -03:00
Felix Fietkau
2716853132
wifi-scripts: add new package, move wifi scripts to a single place
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-02-03 16:16:36 +01:00