mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
Add support for making UHR connections and accepting AP stations with UHR support. Link: https://patch.msgid.link/20260130164259.7185980484eb.Ieec940b58dbf8115dab7e1e24cb5513f52c8cb2f@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
31 lines
767 B
C
31 lines
767 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* UHR handling
|
|
*
|
|
* Copyright(c) 2025-2026 Intel Corporation
|
|
*/
|
|
|
|
#include "ieee80211_i.h"
|
|
|
|
void
|
|
ieee80211_uhr_cap_ie_to_sta_uhr_cap(struct ieee80211_sub_if_data *sdata,
|
|
struct ieee80211_supported_band *sband,
|
|
const struct ieee80211_uhr_cap *uhr_cap,
|
|
u8 uhr_cap_len,
|
|
struct link_sta_info *link_sta)
|
|
{
|
|
struct ieee80211_sta_uhr_cap *sta_uhr_cap = &link_sta->pub->uhr_cap;
|
|
bool from_ap;
|
|
|
|
memset(sta_uhr_cap, 0, sizeof(*sta_uhr_cap));
|
|
|
|
if (!ieee80211_get_uhr_iftype_cap_vif(sband, &sdata->vif))
|
|
return;
|
|
|
|
sta_uhr_cap->has_uhr = true;
|
|
|
|
sta_uhr_cap->mac = uhr_cap->mac;
|
|
from_ap = sdata->vif.type == NL80211_IFTYPE_STATION;
|
|
sta_uhr_cap->phy = *ieee80211_uhr_phy_cap(uhr_cap, from_ap);
|
|
}
|