@@ -1814,49 +1814,6 @@ mt7925_mcu_sta_mld_tlv(struct sk_buff *skb,
1814
1814
}
1815
1815
}
1816
1816
1817
- static int
1818
- mt7925_mcu_sta_cmd (struct mt76_phy * phy ,
1819
- struct mt76_sta_cmd_info * info )
1820
- {
1821
- struct mt76_vif_link * mvif = (struct mt76_vif_link * )info -> vif -> drv_priv ;
1822
- struct mt76_dev * dev = phy -> dev ;
1823
- struct sk_buff * skb ;
1824
- int conn_state ;
1825
-
1826
- skb = __mt76_connac_mcu_alloc_sta_req (dev , mvif , info -> wcid ,
1827
- MT7925_STA_UPDATE_MAX_SIZE );
1828
- if (IS_ERR (skb ))
1829
- return PTR_ERR (skb );
1830
-
1831
- conn_state = info -> enable ? CONN_STATE_PORT_SECURE :
1832
- CONN_STATE_DISCONNECT ;
1833
- if (info -> link_sta )
1834
- mt76_connac_mcu_sta_basic_tlv (dev , skb , info -> link_conf ,
1835
- info -> link_sta ,
1836
- conn_state , info -> newly );
1837
- if (info -> link_sta && info -> enable ) {
1838
- mt7925_mcu_sta_phy_tlv (skb , info -> vif , info -> link_sta );
1839
- mt7925_mcu_sta_ht_tlv (skb , info -> link_sta );
1840
- mt7925_mcu_sta_vht_tlv (skb , info -> link_sta );
1841
- mt76_connac_mcu_sta_uapsd (skb , info -> vif , info -> link_sta -> sta );
1842
- mt7925_mcu_sta_amsdu_tlv (skb , info -> vif , info -> link_sta );
1843
- mt7925_mcu_sta_he_tlv (skb , info -> link_sta );
1844
- mt7925_mcu_sta_he_6g_tlv (skb , info -> link_sta );
1845
- mt7925_mcu_sta_eht_tlv (skb , info -> link_sta );
1846
- mt7925_mcu_sta_rate_ctrl_tlv (skb , info -> vif ,
1847
- info -> link_sta );
1848
- mt7925_mcu_sta_state_v2_tlv (phy , skb , info -> link_sta ,
1849
- info -> vif , info -> rcpi ,
1850
- info -> state );
1851
- mt7925_mcu_sta_mld_tlv (skb , info -> vif , info -> link_sta -> sta );
1852
- }
1853
-
1854
- if (info -> enable )
1855
- mt7925_mcu_sta_hdr_trans_tlv (skb , info -> vif , info -> link_sta );
1856
-
1857
- return mt76_mcu_skb_send_msg (dev , skb , info -> cmd , true);
1858
- }
1859
-
1860
1817
static void
1861
1818
mt7925_mcu_sta_remove_tlv (struct sk_buff * skb )
1862
1819
{
@@ -1869,8 +1826,8 @@ mt7925_mcu_sta_remove_tlv(struct sk_buff *skb)
1869
1826
}
1870
1827
1871
1828
static int
1872
- mt7925_mcu_mlo_sta_cmd (struct mt76_phy * phy ,
1873
- struct mt76_sta_cmd_info * info )
1829
+ mt7925_mcu_sta_cmd (struct mt76_phy * phy ,
1830
+ struct mt76_sta_cmd_info * info )
1874
1831
{
1875
1832
struct mt792x_vif * mvif = (struct mt792x_vif * )info -> vif -> drv_priv ;
1876
1833
struct mt76_dev * dev = phy -> dev ;
@@ -1884,12 +1841,10 @@ mt7925_mcu_mlo_sta_cmd(struct mt76_phy *phy,
1884
1841
if (IS_ERR (skb ))
1885
1842
return PTR_ERR (skb );
1886
1843
1887
- if (info -> enable )
1844
+ if (info -> enable && info -> link_sta ) {
1888
1845
mt76_connac_mcu_sta_basic_tlv (dev , skb , info -> link_conf ,
1889
1846
info -> link_sta ,
1890
1847
info -> enable , info -> newly );
1891
-
1892
- if (info -> enable && info -> link_sta ) {
1893
1848
mt7925_mcu_sta_phy_tlv (skb , info -> vif , info -> link_sta );
1894
1849
mt7925_mcu_sta_ht_tlv (skb , info -> link_sta );
1895
1850
mt7925_mcu_sta_vht_tlv (skb , info -> link_sta );
@@ -1940,7 +1895,6 @@ int mt7925_mcu_sta_update(struct mt792x_dev *dev,
1940
1895
};
1941
1896
struct mt792x_sta * msta ;
1942
1897
struct mt792x_link_sta * mlink ;
1943
- int err ;
1944
1898
1945
1899
if (link_sta ) {
1946
1900
msta = (struct mt792x_sta * )link_sta -> sta -> drv_priv ;
@@ -1949,12 +1903,7 @@ int mt7925_mcu_sta_update(struct mt792x_dev *dev,
1949
1903
info .wcid = link_sta ? & mlink -> wcid : & mvif -> sta .deflink .wcid ;
1950
1904
info .newly = state != MT76_STA_INFO_STATE_ASSOC ;
1951
1905
1952
- if (ieee80211_vif_is_mld (vif ))
1953
- err = mt7925_mcu_mlo_sta_cmd (& dev -> mphy , & info );
1954
- else
1955
- err = mt7925_mcu_sta_cmd (& dev -> mphy , & info );
1956
-
1957
- return err ;
1906
+ return mt7925_mcu_sta_cmd (& dev -> mphy , & info );
1958
1907
}
1959
1908
1960
1909
int mt7925_mcu_set_beacon_filter (struct mt792x_dev * dev ,
0 commit comments