bf.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) bf.c (046d2e7c50e3087a32a85fd384c21f896dbccf83)
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2/* Copyright(c) 2018-2019 Realtek Corporation.
3 */
4
5#include "main.h"
6#include "reg.h"
7#include "bf.h"
8#include "debug.h"

--- 41 unchanged lines hidden (view full) ---

50 sta = ieee80211_find_sta(vif, bssid);
51 if (!sta) {
52 rtw_warn(rtwdev, "failed to find station entry for bss %pM\n",
53 bssid);
54 goto out_unlock;
55 }
56
57 ic_vht_cap = &hw->wiphy->bands[NL80211_BAND_5GHZ]->vht_cap;
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2/* Copyright(c) 2018-2019 Realtek Corporation.
3 */
4
5#include "main.h"
6#include "reg.h"
7#include "bf.h"
8#include "debug.h"

--- 41 unchanged lines hidden (view full) ---

50 sta = ieee80211_find_sta(vif, bssid);
51 if (!sta) {
52 rtw_warn(rtwdev, "failed to find station entry for bss %pM\n",
53 bssid);
54 goto out_unlock;
55 }
56
57 ic_vht_cap = &hw->wiphy->bands[NL80211_BAND_5GHZ]->vht_cap;
58 vht_cap = &sta->vht_cap;
58 vht_cap = &sta->deflink.vht_cap;
59
60 if ((ic_vht_cap->cap & IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE) &&
61 (vht_cap->cap & IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE)) {
62 if (bfinfo->bfer_mu_cnt >= chip->bfer_mu_max_num) {
63 rtw_dbg(rtwdev, RTW_DBG_BF, "mu bfer number over limit\n");
64 goto out_unlock;
65 }
66

--- 343 unchanged lines hidden ---
59
60 if ((ic_vht_cap->cap & IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE) &&
61 (vht_cap->cap & IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE)) {
62 if (bfinfo->bfer_mu_cnt >= chip->bfer_mu_max_num) {
63 rtw_dbg(rtwdev, RTW_DBG_BF, "mu bfer number over limit\n");
64 goto out_unlock;
65 }
66

--- 343 unchanged lines hidden ---