mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 10:57:47 +00:00
hostapd: AAA WISPr rates are sent as mbit
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
committed by
jaspreetsachdev
parent
41c64e9978
commit
0272d4bcad
@@ -120,7 +120,7 @@ Index: hostapd-2021-02-20-59e9794c/src/ap/sta_info.c
|
|||||||
else
|
else
|
||||||
#endif /* CONFIG_P2P */
|
#endif /* CONFIG_P2P */
|
||||||
- os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(sta->addr));
|
- os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(sta->addr));
|
||||||
+ os_snprintf(buf, sizeof(buf), MACSTR " %d %d", MAC2STR(sta->addr), sta->bandwidth[0] / 1000, sta->bandwidth[1] / 1000);
|
+ os_snprintf(buf, sizeof(buf), MACSTR " %d %d", MAC2STR(sta->addr), sta->bandwidth[0] / 1000000, sta->bandwidth[1] / 1000000);
|
||||||
|
|
||||||
if (hapd->sta_authorized_cb)
|
if (hapd->sta_authorized_cb)
|
||||||
hapd->sta_authorized_cb(hapd->sta_authorized_cb_ctx,
|
hapd->sta_authorized_cb(hapd->sta_authorized_cb_ctx,
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ index 0000000000..f2f4a933d7
|
|||||||
+ else
|
+ else
|
||||||
+ #endif /* CONFIG_P2P */
|
+ #endif /* CONFIG_P2P */
|
||||||
+- os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(sta->addr));
|
+- os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(sta->addr));
|
||||||
++ os_snprintf(buf, sizeof(buf), MACSTR " %d %d", MAC2STR(sta->addr), sta->bandwidth[0] / 1000, sta->bandwidth[1] / 1000);
|
++ os_snprintf(buf, sizeof(buf), MACSTR " %d %d", MAC2STR(sta->addr), sta->bandwidth[0] / 1000000, sta->bandwidth[1] / 1000000);
|
||||||
+
|
+
|
||||||
+ if (hapd->sta_authorized_cb)
|
+ if (hapd->sta_authorized_cb)
|
||||||
+ hapd->sta_authorized_cb(hapd->sta_authorized_cb_ctx,
|
+ hapd->sta_authorized_cb(hapd->sta_authorized_cb_ctx,
|
||||||
|
|||||||
Reference in New Issue
Block a user