forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hostapd: fix OWE ssid update on configuration changes
Refresh OWE transition IEs on updating BSS interfaces Signed-off-by: Felix Fietkau <[email protected]>
- Loading branch information
Showing
5 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
package/network/services/hostapd/patches/180-fix_owe_ssid_update.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- a/src/ap/hostapd.c | ||
+++ b/src/ap/hostapd.c | ||
@@ -2420,7 +2420,11 @@ static int hostapd_owe_iface_iter(struct | ||
if (!bss->conf->ssid.ssid_set || !bss->conf->ssid.ssid_len || | ||
is_zero_ether_addr(bss->own_addr)) | ||
continue; | ||
- | ||
+ if (!os_memcmp(hapd->conf->owe_transition_bssid, bss->own_addr, ETH_ALEN) && | ||
+ hapd->conf->owe_transition_ssid_len == bss->conf->ssid.ssid_len && | ||
+ !os_memcmp(hapd->conf->owe_transition_ssid, bss->conf->ssid.ssid, | ||
+ bss->conf->ssid.ssid_len)) | ||
+ return 0; | ||
os_memcpy(hapd->conf->owe_transition_bssid, bss->own_addr, | ||
ETH_ALEN); | ||
os_memcpy(hapd->conf->owe_transition_ssid, | ||
@@ -2437,10 +2441,6 @@ static int hostapd_owe_iface_iter(struct | ||
|
||
int hostapd_owe_trans_get_info(struct hostapd_data *hapd) | ||
{ | ||
- if (hapd->conf->owe_transition_ssid_len > 0 && | ||
- !is_zero_ether_addr(hapd->conf->owe_transition_bssid)) | ||
- return 0; | ||
- | ||
/* Find transition mode SSID/BSSID information from a BSS operated by | ||
* this hostapd instance. */ | ||
if (!hapd->iface->interfaces || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters