Skip to content

Commit

Permalink
modules: hostap: Supports link mode of legacy STA.
Browse files Browse the repository at this point in the history
Link mode shows unknown when legacy (A or bg only) device connects to
APUT. Set the link mode to WIFI_2 when the host freq over 4000 and set
link mode to WIFI_3 when the host freq over 2000.

Signed-off-by: Hui Bai <[email protected]>
  • Loading branch information
nxf58150 authored and nashif committed Aug 28, 2024
1 parent 86feca3 commit dbc6cdc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/hostap/src/supp_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ static enum wifi_link_mode get_sta_link_mode(struct wpa_supplicant *wpa_s, struc
return WIFI_2;
} else if (wpa_s->assoc_freq > 2000) {
return WIFI_3;
#else
} else if (iface->freq > 4000) {
return WIFI_2;
} else if (iface->freq > 2000) {
return WIFI_3;
#endif
} else {
return WIFI_LINK_MODE_UNKNOWN;
Expand Down

0 comments on commit dbc6cdc

Please sign in to comment.