mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 06:02:39 +01:00
wiphy: Add wiphy_get_supported_bands
This commit is contained in:
parent
dc37dca24b
commit
c60d34cd8d
@ -109,6 +109,14 @@ const char *wiphy_get_path(struct wiphy *wiphy)
|
||||
return path;
|
||||
}
|
||||
|
||||
uint32_t wiphy_get_supported_bands(struct wiphy *wiphy)
|
||||
{
|
||||
if (!wiphy->supported_freqs)
|
||||
return 0;
|
||||
|
||||
return scan_freq_set_get_bands(wiphy->supported_freqs);
|
||||
}
|
||||
|
||||
static void wiphy_print_basic_info(struct wiphy *wiphy)
|
||||
{
|
||||
uint32_t bands;
|
||||
|
@ -31,6 +31,7 @@ enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy,
|
||||
struct wiphy *wiphy_find(int wiphy_id);
|
||||
|
||||
const char *wiphy_get_path(struct wiphy *wiphy);
|
||||
uint32_t wiphy_get_supported_bands(struct wiphy *wiphy);
|
||||
|
||||
bool wiphy_init(struct l_genl_family *in);
|
||||
bool wiphy_exit(void);
|
||||
|
Loading…
Reference in New Issue
Block a user