wiphy: Add wiphy_get_id
This commit is contained in:
parent
fcdddf2b72
commit
6825721535
|
@ -283,6 +283,11 @@ const char *wiphy_get_path(struct wiphy *wiphy)
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t wiphy_get_id(struct wiphy *wiphy)
|
||||||
|
{
|
||||||
|
return wiphy->id;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t wiphy_get_supported_bands(struct wiphy *wiphy)
|
uint32_t wiphy_get_supported_bands(struct wiphy *wiphy)
|
||||||
{
|
{
|
||||||
if (!wiphy->supported_freqs)
|
if (!wiphy->supported_freqs)
|
||||||
|
|
|
@ -54,6 +54,7 @@ void wiphy_update_from_genl(struct wiphy *wiphy, const char *name,
|
||||||
bool wiphy_constrain_freq_set(const struct wiphy *wiphy,
|
bool wiphy_constrain_freq_set(const struct wiphy *wiphy,
|
||||||
struct scan_freq_set *set);
|
struct scan_freq_set *set);
|
||||||
|
|
||||||
|
uint32_t wiphy_get_id(struct wiphy *wiphy);
|
||||||
const char *wiphy_get_path(struct wiphy *wiphy);
|
const char *wiphy_get_path(struct wiphy *wiphy);
|
||||||
uint32_t wiphy_get_supported_bands(struct wiphy *wiphy);
|
uint32_t wiphy_get_supported_bands(struct wiphy *wiphy);
|
||||||
const struct scan_freq_set *wiphy_get_supported_freqs(
|
const struct scan_freq_set *wiphy_get_supported_freqs(
|
||||||
|
|
Loading…
Reference in New Issue