* HE handling
*
* Copyright(c) 2017 Intel Deutschland GmbH
- * Copyright(c) 2019-2025 Intel Corporation
+ * Copyright(c) 2019-2026 Intel Corporation
*/
#include "ieee80211_i.h"
he_cap->has_he = true;
link_sta->cur_max_bandwidth = ieee80211_sta_cap_rx_bw(link_sta);
- if (sdata->vif.type != NL80211_IFTYPE_NAN)
- link_sta->pub->bandwidth = ieee80211_sta_cur_vht_bw(link_sta);
+ link_sta->pub->bandwidth = ieee80211_sta_cur_vht_bw(link_sta);
if (he_6ghz_capa)
ieee80211_update_from_he_6ghz_capa(he_6ghz_capa, link_sta);
IEEE80211_STA_RX_BW_160;
}
- if (sdata->vif.type != NL80211_IFTYPE_NAN)
- link_sta->pub->bandwidth = ieee80211_sta_cur_vht_bw(link_sta);
+ link_sta->pub->bandwidth = ieee80211_sta_cur_vht_bw(link_sta);
/*
* Work around the Cisco 9115 FW 17.3 bug by taking the min of
struct ieee80211_bss_conf *link_conf;
/* NAN operates on multiple channels so a chandef must be given */
- if (WARN_ON_ONCE(sta->sdata->vif.type == NL80211_IFTYPE_NAN ||
- sta->sdata->vif.type == NL80211_IFTYPE_NAN_DATA))
- return IEEE80211_STA_RX_BW_20;
+ if (sta->sdata->vif.type == NL80211_IFTYPE_NAN ||
+ sta->sdata->vif.type == NL80211_IFTYPE_NAN_DATA)
+ return IEEE80211_STA_RX_BW_MAX;
rcu_read_lock();
link_conf = rcu_dereference(sta->sdata->vif.link_conf[link_sta->link_id]);