diff --git a/feeds/ipq807x_v5.4/hostapd/patches/s00-004-RADIUS-ACL-PSK-wispr.patch b/feeds/ipq807x_v5.4/hostapd/patches/s00-004-RADIUS-ACL-PSK-wispr.patch new file mode 100644 index 000000000..ad2cd5b88 --- /dev/null +++ b/feeds/ipq807x_v5.4/hostapd/patches/s00-004-RADIUS-ACL-PSK-wispr.patch @@ -0,0 +1,32 @@ +--- a/src/ap/ieee802_11_auth.c ++++ b/src/ap/ieee802_11_auth.c +@@ -578,6 +578,8 @@ hostapd_acl_recv_radius(struct radius_ms + os_memcpy(info->radius_cui, buf, len); + } + ++ radius_msg_get_wispr(msg, info->bandwidth); ++ + if (hapd->conf->wpa_psk_radius == PSK_RADIUS_REQUIRED && + !info->psk) + cache->accepted = HOSTAPD_ACL_REJECT; +--- a/src/ap/ieee802_11_auth.h ++++ b/src/ap/ieee802_11_auth.h +@@ -23,6 +23,7 @@ struct radius_sta { + struct hostapd_sta_wpa_psk_short *psk; + char *identity; + char *radius_cui; ++ u32 bandwidth[2]; + }; + + int hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr, +--- a/src/ap/ieee802_11.c ++++ b/src/ap/ieee802_11.c +@@ -2406,6 +2406,8 @@ int ieee802_11_set_radius_info(struct ho + ap_sta_no_session_timeout(hapd, sta); + } + ++ os_memcpy(sta->bandwidth, info->bandwidth, sizeof(sta->bandwidth)); ++ + return 0; + } +