mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
wiphy: Add wiphy_supports_adhoc_rsn
This commit is contained in:
parent
59697ead34
commit
6f2fbe32f9
@ -58,6 +58,7 @@ struct wiphy {
|
|||||||
uint8_t max_num_ssids_per_scan;
|
uint8_t max_num_ssids_per_scan;
|
||||||
bool support_scheduled_scan:1;
|
bool support_scheduled_scan:1;
|
||||||
bool support_rekey_offload:1;
|
bool support_rekey_offload:1;
|
||||||
|
bool support_adhoc_rsn:1;
|
||||||
uint16_t supported_ciphers;
|
uint16_t supported_ciphers;
|
||||||
struct scan_freq_set *supported_freqs;
|
struct scan_freq_set *supported_freqs;
|
||||||
char *model_str;
|
char *model_str;
|
||||||
@ -201,6 +202,11 @@ uint8_t wiphy_get_max_num_ssids_per_scan(struct wiphy *wiphy)
|
|||||||
return wiphy->max_num_ssids_per_scan;
|
return wiphy->max_num_ssids_per_scan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wiphy_supports_adhoc_rsn(struct wiphy *wiphy)
|
||||||
|
{
|
||||||
|
return wiphy->support_adhoc_rsn;
|
||||||
|
}
|
||||||
|
|
||||||
static void wiphy_print_basic_info(struct wiphy *wiphy)
|
static void wiphy_print_basic_info(struct wiphy *wiphy)
|
||||||
{
|
{
|
||||||
uint32_t bands;
|
uint32_t bands;
|
||||||
@ -388,6 +394,9 @@ static void wiphy_parse_attributes(struct wiphy *wiphy,
|
|||||||
wiphy->max_num_ssids_per_scan =
|
wiphy->max_num_ssids_per_scan =
|
||||||
*((uint8_t *) data);
|
*((uint8_t *) data);
|
||||||
break;
|
break;
|
||||||
|
case NL80211_ATTR_SUPPORT_IBSS_RSN:
|
||||||
|
wiphy->support_adhoc_rsn = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,6 +38,8 @@ bool wiphy_has_feature(struct wiphy *wiphy, uint32_t feature);
|
|||||||
bool wiphy_has_ext_feature(struct wiphy *wiphy, uint32_t feature);
|
bool wiphy_has_ext_feature(struct wiphy *wiphy, uint32_t feature);
|
||||||
uint8_t wiphy_get_max_num_ssids_per_scan(struct wiphy *wiphy);
|
uint8_t wiphy_get_max_num_ssids_per_scan(struct wiphy *wiphy);
|
||||||
|
|
||||||
|
bool wiphy_supports_adhoc_rsn(struct wiphy *wiphy);
|
||||||
|
|
||||||
bool wiphy_init(struct l_genl_family *in, const char *whitelist,
|
bool wiphy_init(struct l_genl_family *in, const char *whitelist,
|
||||||
const char *blacklist);
|
const char *blacklist);
|
||||||
bool wiphy_exit(void);
|
bool wiphy_exit(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user