mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 09:39:25 +01:00
ap: add DisableHT setting
This allows the user to disable HT explicitly in the AP profile
This commit is contained in:
parent
62c99d7c33
commit
c57071df65
11
src/ap.c
11
src/ap.c
@ -3660,6 +3660,17 @@ static int ap_load_config(struct ap_state *ap, const struct l_settings *config,
|
||||
ap->band = BAND_FREQ_2_4_GHZ;
|
||||
}
|
||||
|
||||
if (l_settings_has_key(config, "General", "DisableHT")) {
|
||||
bool boolval;
|
||||
|
||||
if (!l_settings_get_bool(config, "General", "DisableHT",
|
||||
&boolval)) {
|
||||
l_error("AP [General].DisableHT not a valid boolean");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ap->supports_ht = !boolval;
|
||||
} else
|
||||
ap->supports_ht = wiphy_get_ht_capabilities(wiphy, ap->band,
|
||||
NULL) != NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user