mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: fix copy&paste issue on capability check rework
Fixes disabling capabilities in AP mode via config Reported-by: Money Wang (王信安) <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+9
-8
@@ -664,14 +664,15 @@ mt7915_vif_check_caps(struct mt7915_phy *phy, struct ieee80211_vif *vif)
|
||||
struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv;
|
||||
struct mt7915_vif_cap *vc = &mvif->cap;
|
||||
|
||||
vc->vht_ldpc = mvif->cap.vht_ldpc;
|
||||
vc->vht_su_ebfer = mvif->cap.vht_su_ebfer;
|
||||
vc->vht_su_ebfee = mvif->cap.vht_su_ebfee;
|
||||
vc->vht_mu_ebfer = mvif->cap.vht_mu_ebfer;
|
||||
vc->vht_mu_ebfee = mvif->cap.vht_mu_ebfee;
|
||||
vc->he_ldpc = mvif->cap.he_ldpc;
|
||||
vc->he_su_ebfer = mvif->cap.he_su_ebfer;
|
||||
vc->he_su_ebfee = mvif->cap.he_su_ebfee;
|
||||
vc->ht_ldpc = vif->bss_conf.ht_ldpc;
|
||||
vc->vht_ldpc = vif->bss_conf.vht_ldpc;
|
||||
vc->vht_su_ebfer = vif->bss_conf.vht_su_beamformer;
|
||||
vc->vht_su_ebfee = vif->bss_conf.vht_su_beamformee;
|
||||
vc->vht_mu_ebfer = vif->bss_conf.vht_mu_beamformer;
|
||||
vc->vht_mu_ebfee = vif->bss_conf.vht_mu_beamformee;
|
||||
vc->he_ldpc = vif->bss_conf.he_ldpc;
|
||||
vc->he_su_ebfer = vif->bss_conf.he_su_beamformer;
|
||||
vc->he_su_ebfee = vif->bss_conf.he_su_beamformee;
|
||||
vc->he_mu_ebfer = vif->bss_conf.he_mu_beamformer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user