Skip to content
Snippets Groups Projects
Commit faeae54f authored by Anjan Chanda's avatar Anjan Chanda
Browse files

for wifi interface report highest supported standard from current oper-stds

parent 749b339e
No related branches found
No related tags found
No related merge requests found
Pipeline #131977 passed
...@@ -180,7 +180,7 @@ int platform_wifi_get_freqband(const char *ifname, uint32_t *band) ...@@ -180,7 +180,7 @@ int platform_wifi_get_freqband(const char *ifname, uint32_t *band)
if (ret) if (ret)
return -1; return -1;
info("Oper-band: %d\n", b); info("Oper-band: 0x%x\n", b);
switch (b) { switch (b) {
case BAND_2: case BAND_2:
*band = 2; *band = 2;
...@@ -224,15 +224,16 @@ int platform_wifi_get_standard(const char *ifname, enum i1905_mediatype *std) ...@@ -224,15 +224,16 @@ int platform_wifi_get_standard(const char *ifname, enum i1905_mediatype *std)
if (ret) if (ret)
return -1; return -1;
info("Oper-Standards: %d\n", s); info("Oper-Standards: 0x%02x\n", s);
#ifdef WIFI_EASYMESH #ifdef WIFI_EASYMESH
if (!!(s & WIFI_AX)) { /* report the highest supported standard from current oper stds */
info("802.11ax\n"); if (!!(s & WIFI_BE)) {
*std = I1905_802_11AX;
} else if (!!(s & WIFI_BE)) {
info("802.11be\n"); info("802.11be\n");
*std = I1905_802_11BE; *std = I1905_802_11BE;
} else if (!!(s & WIFI_AX)) {
info("802.11ax\n");
*std = I1905_802_11AX;
} else } else
#endif #endif
if (!!(s & WIFI_AC)) { if (!!(s & WIFI_AC)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment