1: 8e354332afd7 ! 1: 95d143225af6 wifi: rtw88: 8812a, 8814a: enable STBC for HT transmissions @@ Metadata ## Commit message ## wifi: rtw88: 8812a, 8814a: enable STBC for HT transmissions  - 8812a and 8814a support STBC, enable it. + 8812a and 8814a support HT STBC, enable it. Previously, only + VHT TX STBC was advertised, this patch enables STBC for HT too.  8822c will lose reporting TX STBC capability if efuse reports only 1 path, but this is correct, since in that case it doesn't actually support STBC.  - Tested on RTL8812AU, STBC packets were captured in monitor mode. + Tested on RTL8812AU with an HT only AP, HT STBC packets were + captured in monitor mode.  Signed-off-by: Ho Jie Feng   2: ef64e5c0f091 = 2: e61ff4a76704 wifi: rtw88: skip the dynamic CSI rate without a cfg_csi_rate op 3: cd5fe11bed79 ! 3: 683310beaf52 wifi: rtw88: correctly expose beamformee capabilities @@ Metadata ## Commit message ## wifi: rtw88: correctly expose beamformee capabilities  + Both SU and MU beamformee flags were set on every VHT chip, + regardless of the chip limits bfer_su_max_num and bfer_mu_max_num. + This is wrong when the chip does not support SU or MU beamformee. + + rtw_bf_assoc() also checks these flags. With an AP that is a MU + beamformer, the MU flag makes it take the MU branch and return at + bfer_mu_max_num, so a chip without MU support is never set up as a + SU beamformee either. + Make MU and SU capability flags each depend on the chip declared maximum instead of setting both flags together.  @@ drivers/net/wireless/realtek/rtw88/main.c: static void rtw_init_vht_cap(struct r  - IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE;  - vht_cap->cap |= (rtwdev->hal.bfee_sts_cap <<  - IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT); -+ if (rtw_bf_support && chip->bfer_su_max_num) { ++ if (chip->bfer_su_max_num) {  + vht_cap->cap |= IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE;  + vht_cap->cap |= rtwdev->hal.bfee_sts_cap <<  + IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT;  + } -+ if (rtw_bf_support && chip->bfer_mu_max_num) ++ if (chip->bfer_mu_max_num)  + vht_cap->cap |= IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE;  if (rtw_chip_has_rx_ldpc(rtwdev)) 4: 25709db5c386 ! 4: bfbf7376073d wifi: rtw88: 88xxa: receive VHT SU beamformed transmissions @@ Metadata ## Commit message ## wifi: rtw88: 88xxa: receive VHT SU beamformed transmissions  - Implement beamformee support for 88xxa since they have - support for it. + RTL8812A, RTL8821A and RTL8814A can be a VHT SU beamformee, but they + have no config_bfee callback and bfer_su_max_num is 0, so + rtw_bf_assoc() never sets them up. + + This adds the SU beamformee setup for these chips, for up to two + beamformers. This is done by enabling sounding to the AP and + setting the correct CSI report parameters.  Signed-off-by: Ho Jie Feng   5: 584b931b46ae ! 5: 72a587251556 wifi: rtw88: prepare frequency-offset correction for more chips @@ Metadata ## Commit message ## wifi: rtw88: prepare frequency-offset correction for more chips  - Promote chip specific functions into the common core for cfo tracking. - These become helpers which can be used by the other drivers. + Promote chip specific functions from RTL8822C into the common + core for cfo tracking. These become helpers which can be used + by the other drivers. + + Crystal register writes stay in the chip code, while common + tracking logic is promoted. This ensures that the chip specific + portion stays within the per chip files.  Signed-off-by: Ho Jie Feng   6: 13868244de11 ! 6: b867a2182030 wifi: rtw88: 88xxa: correct carrier-frequency offset @@ Metadata ## Commit message ## wifi: rtw88: 88xxa: correct carrier-frequency offset  - Use the newly promoted helpers to implement support for 88xxa + Use the newly promoted helpers to implement CFO tracking for 88xxa. + + The PHY status of each received frame reports a CFO tail per RF path. + The CFO tracking code averages them and corrects the offset if the + offset is too large. + + RTL8814A has four RF paths, but reports a CFO tail only for paths A + and B, so we only take the CFO tail of 2 paths. + + The crystal cap is 6 bits wide on all chips except RTL8822C. Obtain + the correct value by masking it. For RTL8814A, use 0x20 if the + the efuse is empty, like the vendor driver.  Signed-off-by: Ho Jie Feng   7: eb3bb94afcf9 ! 7: 806beff3e9eb wifi: rtw88: 8812a, 8821a: respect peer A-MPDU size limits @@ Metadata ## Commit message ## wifi: rtw88: 8812a, 8821a: respect peer A-MPDU size limits  + Previously, these chips had no set_ampdu_factor callback, so + rtw_set_ampdu_factor() returned before programming the peer's + limit. + Honor the peer-advertised receive limit for transmitted A-MPDUs.  Signed-off-by: Ho Jie Feng