mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
wiphy: add support for MAX_NUM_SCAN_SSIDS
This commit is contained in:
parent
b774695a7e
commit
46abfc7813
13
src/wiphy.c
13
src/wiphy.c
@ -55,6 +55,7 @@ struct wiphy {
|
||||
char name[20];
|
||||
uint32_t feature_flags;
|
||||
uint8_t ext_features[(NUM_NL80211_EXT_FEATURES + 7) / 8];
|
||||
uint8_t max_num_ssids_per_scan;
|
||||
bool support_scheduled_scan:1;
|
||||
bool support_rekey_offload:1;
|
||||
uint16_t supported_ciphers;
|
||||
@ -190,6 +191,11 @@ bool wiphy_get_ext_feature(struct wiphy *wiphy, unsigned int idx)
|
||||
util_is_bit_set(wiphy->ext_features[idx >> 3], idx & 7);
|
||||
}
|
||||
|
||||
uint8_t wiphy_get_max_num_ssids_per_scan(struct wiphy *wiphy)
|
||||
{
|
||||
return wiphy->max_num_ssids_per_scan;
|
||||
}
|
||||
|
||||
static void wiphy_print_basic_info(struct wiphy *wiphy)
|
||||
{
|
||||
uint32_t bands;
|
||||
@ -370,6 +376,13 @@ static void wiphy_parse_attributes(struct wiphy *wiphy,
|
||||
parse_supported_bands(wiphy, &nested);
|
||||
|
||||
break;
|
||||
case NL80211_ATTR_MAX_NUM_SCAN_SSIDS:
|
||||
if (len != sizeof(uint8_t))
|
||||
l_warn("Invalid MAX_NUM_SCAN_SSIDS attribute");
|
||||
else
|
||||
wiphy->max_num_ssids_per_scan =
|
||||
*((uint8_t *) data);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,7 @@ const char *wiphy_get_path(struct wiphy *wiphy);
|
||||
uint32_t wiphy_get_supported_bands(struct wiphy *wiphy);
|
||||
bool wiphy_can_connect(struct wiphy *wiphy, struct scan_bss *bss);
|
||||
bool wiphy_get_ext_feature(struct wiphy *wiphy, unsigned int idx);
|
||||
uint8_t wiphy_get_max_num_ssids_per_scan(struct wiphy *wiphy);
|
||||
|
||||
bool wiphy_init(struct l_genl_family *in, const char *whitelist,
|
||||
const char *blacklist);
|
||||
|
Loading…
Reference in New Issue
Block a user