mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-15 17:51:41 -04:00
mac80211: Add HE 6GHz capabilities element to probe request
On 6 GHz, the 6 GHz capabilities element should be added, do that. Signed-off-by: Ilan Peer <ilan.peer@intel.com> [add commit message] Link: https://lore.kernel.org/r/20200528213443.8ee764f0cde0.I2b0c66b60e11818c97c9803e04a6a197c6376243@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -512,6 +512,26 @@ ieee80211_get_he_sta_cap(const struct ieee80211_supported_band *sband)
|
||||
return ieee80211_get_he_iftype_cap(sband, NL80211_IFTYPE_STATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* ieee80211_get_he_6ghz_capa - return HE 6 GHz capabilities
|
||||
* @sband: the sband to search for the STA on
|
||||
* @iftype: the iftype to search for
|
||||
*
|
||||
* Return: the 6GHz capabilities
|
||||
*/
|
||||
static inline __le16
|
||||
ieee80211_get_he_6ghz_capa(const struct ieee80211_supported_band *sband,
|
||||
enum nl80211_iftype iftype)
|
||||
{
|
||||
const struct ieee80211_sband_iftype_data *data =
|
||||
ieee80211_get_sband_iftype_data(sband, iftype);
|
||||
|
||||
if (WARN_ON(!data || !data->he_cap.has_he))
|
||||
return 0;
|
||||
|
||||
return data->he_6ghz_capa.capa;
|
||||
}
|
||||
|
||||
/**
|
||||
* wiphy_read_of_freq_limits - read frequency limits from device tree
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user