6ghz support

This commit is contained in:
Sukru Senli 2022-09-12 17:50:18 +02:00
parent 16b886cc52
commit a713d2a6ed
2 changed files with 3 additions and 1 deletions

View file

@ -348,6 +348,8 @@ static char *get_datamodel_media_type(const char *media)
return "IEEE 802.11ax 2.4";
else if (!DM_LSTRCMP(media, "IEEE 802_11AX_5_GHZ"))
return "IEEE 802.11ax 5.0";
else if (!DM_LSTRCMP(media, "IEEE 802_11AX_6_GHZ"))
return "IEEE 802.11ax 6.0";
else if (!DM_LSTRCMP(media, "IEEE 802_11AD_60_GHZ"))
return "IEEE 802.11ad";
else if (!DM_LSTRCMP(media, "IEEE 802_11AF_GHZ"))

View file

@ -3414,7 +3414,7 @@ static int get_radio_supported_frequency_bands(char *refparam, struct dmctx *ctx
snprintf(object, sizeof(object), "wifi.radio.%s", section_name((((struct wifi_radio_args *)data)->sections)->config_section));
dmubus_call(object, "status", UBUS_ARGS{0}, 0, &res);
DM_ASSERT(res, *value = "2.4GHz,5GHz");
DM_ASSERT(res, *value = "2.4GHz,5GHz,6GHz");
*value = dmjson_get_value_array_all(res, ",", 1, "supp_bands");
return 0;
}