blob: ca3b471b7981b9d226eb81c7fccee53ee64394e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// 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;
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;
sta_uhr_cap->phy = uhr_cap->phy;
}
|