diff --git a/src/wiphy.c b/src/wiphy.c index 409424a7..6a895e73 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -235,6 +235,12 @@ uint32_t wiphy_get_supported_bands(struct wiphy *wiphy) return scan_freq_set_get_bands(wiphy->supported_freqs); } +const struct scan_freq_set *wiphy_get_supported_freqs( + const struct wiphy *wiphy) +{ + return wiphy->supported_freqs; +} + bool wiphy_can_connect(struct wiphy *wiphy, struct scan_bss *bss) { struct ie_rsn_info rsn_info; diff --git a/src/wiphy.h b/src/wiphy.h index db694909..9c721ddd 100644 --- a/src/wiphy.h +++ b/src/wiphy.h @@ -45,6 +45,8 @@ struct wiphy *wiphy_find(int wiphy_id); const char *wiphy_get_path(struct wiphy *wiphy); uint32_t wiphy_get_supported_bands(struct wiphy *wiphy); +const struct scan_freq_set *wiphy_get_supported_freqs( + const struct wiphy *wiphy); bool wiphy_can_connect(struct wiphy *wiphy, struct scan_bss *bss); bool wiphy_can_randomize_mac_addr(struct wiphy *wiphy); bool wiphy_has_feature(struct wiphy *wiphy, uint32_t feature);