mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-16 17:09:24 +01:00
wiphy: add flag for supporting remain on channel
This commit is contained in:
parent
1ac3915641
commit
0c228f4465
@ -149,6 +149,7 @@ struct wiphy {
|
|||||||
bool self_managed : 1;
|
bool self_managed : 1;
|
||||||
bool ap_probe_resp_offload : 1;
|
bool ap_probe_resp_offload : 1;
|
||||||
bool supports_uapsd : 1;
|
bool supports_uapsd : 1;
|
||||||
|
bool supports_cmd_offchannel : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct l_queue *wiphy_list = NULL;
|
static struct l_queue *wiphy_list = NULL;
|
||||||
@ -939,6 +940,11 @@ bool wiphy_supports_uapsd(const struct wiphy *wiphy)
|
|||||||
return wiphy->supports_uapsd;
|
return wiphy->supports_uapsd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wiphy_supports_cmd_offchannel(const struct wiphy *wiphy)
|
||||||
|
{
|
||||||
|
return wiphy->supports_cmd_offchannel;
|
||||||
|
}
|
||||||
|
|
||||||
const uint8_t *wiphy_get_ht_capabilities(const struct wiphy *wiphy,
|
const uint8_t *wiphy_get_ht_capabilities(const struct wiphy *wiphy,
|
||||||
enum band_freq band,
|
enum band_freq band,
|
||||||
size_t *size)
|
size_t *size)
|
||||||
@ -1385,6 +1391,9 @@ static void parse_supported_commands(struct wiphy *wiphy,
|
|||||||
case NL80211_CMD_ASSOCIATE:
|
case NL80211_CMD_ASSOCIATE:
|
||||||
assoc = true;
|
assoc = true;
|
||||||
break;
|
break;
|
||||||
|
case NL80211_CMD_REMAIN_ON_CHANNEL:
|
||||||
|
wiphy->supports_cmd_offchannel = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,6 +141,7 @@ bool wiphy_get_rsnxe(const struct wiphy *wiphy, uint8_t *buf, size_t len);
|
|||||||
void wiphy_get_reg_domain_country(struct wiphy *wiphy, char *out);
|
void wiphy_get_reg_domain_country(struct wiphy *wiphy, char *out);
|
||||||
bool wiphy_country_is_unknown(struct wiphy *wiphy);
|
bool wiphy_country_is_unknown(struct wiphy *wiphy);
|
||||||
bool wiphy_supports_uapsd(const struct wiphy *wiphy);
|
bool wiphy_supports_uapsd(const struct wiphy *wiphy);
|
||||||
|
bool wiphy_supports_cmd_offchannel(const struct wiphy *wiphy);
|
||||||
|
|
||||||
const uint8_t *wiphy_get_ht_capabilities(const struct wiphy *wiphy,
|
const uint8_t *wiphy_get_ht_capabilities(const struct wiphy *wiphy,
|
||||||
enum band_freq band,
|
enum band_freq band,
|
||||||
|
Loading…
Reference in New Issue
Block a user