mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
nl80211util: parse additional channel restriction flags
This commit is contained in:
parent
ad02cbee13
commit
ebac58e452
@ -59,6 +59,11 @@ struct band_freq_attrs {
|
||||
bool supported : 1;
|
||||
bool disabled : 1;
|
||||
bool no_ir : 1;
|
||||
bool no_ht40_plus : 1;
|
||||
bool no_ht40_minus : 1;
|
||||
bool no_80mhz : 1;
|
||||
bool no_160mhz : 1;
|
||||
bool no_he : 1;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct band {
|
||||
|
@ -533,6 +533,21 @@ int nl80211_parse_supported_frequencies(struct l_genl_attr *band_freqs,
|
||||
case NL80211_FREQUENCY_ATTR_NO_IR:
|
||||
freq_attr.no_ir = true;
|
||||
break;
|
||||
case NL80211_FREQUENCY_ATTR_NO_HT40_MINUS:
|
||||
freq_attr.no_ht40_minus = true;
|
||||
break;
|
||||
case NL80211_FREQUENCY_ATTR_NO_HT40_PLUS:
|
||||
freq_attr.no_ht40_plus = true;
|
||||
break;
|
||||
case NL80211_FREQUENCY_ATTR_NO_80MHZ:
|
||||
freq_attr.no_80mhz = true;
|
||||
break;
|
||||
case NL80211_FREQUENCY_ATTR_NO_160MHZ:
|
||||
freq_attr.no_160mhz = true;
|
||||
break;
|
||||
case NL80211_FREQUENCY_ATTR_NO_HE:
|
||||
freq_attr.no_he = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user