tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
commit: 89029a85482cbcf68026a89fc974e8f6898d6b37 [7920/10701] mt76: mt7915: add Tx
beamformer support
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 89029a85482cbcf68026a89fc974e8f6898d6b37
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c: In function
'mt7915_mcu_sta_txbf_type':
> drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:1775:21: warning:
variable 'msta' set but not used [-Wunused-but-set-variable]
1775 | struct
mt7915_sta *msta;
| ^~~~
vim +/msta +1775 drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
1770
1771 static u8
1772 mt7915_mcu_sta_txbf_type(struct mt7915_phy *phy, struct ieee80211_vif *vif,
1773 struct ieee80211_sta *sta)
1774 {
1775 struct mt7915_sta *msta;
1776 u8 type = 0;
1777
1778 if (vif->type != NL80211_IFTYPE_STATION &&
1779 vif->type != NL80211_IFTYPE_AP)
1780 return 0;
1781
1782 msta = (struct mt7915_sta *)sta->drv_priv;
1783
1784 if (sta->he_cap.has_he) {
1785 struct ieee80211_he_cap_elem *pe;
1786 const struct ieee80211_he_cap_elem *ve;
1787 const struct ieee80211_sta_he_cap *vc;
1788
1789 pe = &sta->he_cap.he_cap_elem;
1790 vc = mt7915_get_he_phy_cap(phy, vif);
1791 ve = &vc->he_cap_elem;
1792
1793 if ((HE_PHY(CAP3_SU_BEAMFORMER, ve->phy_cap_info[3]) ||
1794 HE_PHY(CAP4_MU_BEAMFORMER, ve->phy_cap_info[4])) &&
1795 HE_PHY(CAP4_SU_BEAMFORMEE, pe->phy_cap_info[4]))
1796 type |= MT_STA_BFER;
1797 } else if (sta->vht_cap.vht_supported) {
1798 struct ieee80211_sta_vht_cap *pc;
1799 struct ieee80211_sta_vht_cap *vc;
1800 u32 cr, ce;
1801
1802 pc = &sta->vht_cap;
1803 vc = &phy->mt76->sband_5g.sband.vht_cap;
1804 cr = IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE |
1805 IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE;
1806 ce = IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE |
1807 IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE;
1808
1809 if ((vc->cap & cr) && (pc->cap & ce))
1810 type |= MT_STA_BFER;
1811 } else if (sta->ht_cap.ht_supported) {
1812 /* TODO: iBF */
1813 }
1814
1815 return type;
1816 }
1817
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org