@@ -189,7 +189,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_set_mac_enable);
189
189
190
190
int mt76_connac_mcu_set_vif_ps (struct mt76_dev * dev , struct ieee80211_vif * vif )
191
191
{
192
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
192
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
193
193
struct {
194
194
u8 bss_idx ;
195
195
u8 ps_state ; /* 0: device awake
@@ -232,7 +232,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_set_rts_thresh);
232
232
void mt76_connac_mcu_beacon_loss_iter (void * priv , u8 * mac ,
233
233
struct ieee80211_vif * vif )
234
234
{
235
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
235
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
236
236
struct mt76_connac_beacon_loss_event * event = priv ;
237
237
238
238
if (mvif -> idx != event -> bss_idx )
@@ -273,7 +273,7 @@ mt76_connac_mcu_add_nested_tlv(struct sk_buff *skb, int tag, int len,
273
273
EXPORT_SYMBOL_GPL (mt76_connac_mcu_add_nested_tlv );
274
274
275
275
struct sk_buff *
276
- __mt76_connac_mcu_alloc_sta_req (struct mt76_dev * dev , struct mt76_vif * mvif ,
276
+ __mt76_connac_mcu_alloc_sta_req (struct mt76_dev * dev , struct mt76_vif_link * mvif ,
277
277
struct mt76_wcid * wcid , int len )
278
278
{
279
279
struct sta_req_hdr hdr = {
@@ -329,7 +329,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_alloc_wtbl_req);
329
329
void mt76_connac_mcu_bss_omac_tlv (struct sk_buff * skb ,
330
330
struct ieee80211_vif * vif )
331
331
{
332
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
332
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
333
333
u8 omac_idx = mvif -> omac_idx ;
334
334
struct bss_info_omac * omac ;
335
335
struct tlv * tlv ;
@@ -497,7 +497,7 @@ int mt76_connac_mcu_sta_update_hdr_trans(struct mt76_dev *dev,
497
497
struct ieee80211_vif * vif ,
498
498
struct mt76_wcid * wcid , int cmd )
499
499
{
500
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
500
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
501
501
struct wtbl_req_hdr * wtbl_hdr ;
502
502
struct tlv * sta_wtbl ;
503
503
struct sk_buff * skb ;
@@ -545,7 +545,7 @@ void mt76_connac_mcu_wtbl_generic_tlv(struct mt76_dev *dev,
545
545
struct ieee80211_sta * sta ,
546
546
void * sta_wtbl , void * wtbl_tlv )
547
547
{
548
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
548
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
549
549
struct wtbl_generic * generic ;
550
550
struct wtbl_rx * rx ;
551
551
struct wtbl_spe * spe ;
@@ -849,7 +849,7 @@ void mt76_connac_mcu_sta_tlv(struct mt76_phy *mphy, struct sk_buff *skb,
849
849
struct ieee80211_vif * vif ,
850
850
u8 rcpi , u8 sta_state )
851
851
{
852
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
852
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
853
853
struct cfg80211_chan_def * chandef = mvif -> ctx ?
854
854
& mvif -> ctx -> def : & mphy -> chandef ;
855
855
enum nl80211_band band = chandef -> chan -> band ;
@@ -1041,7 +1041,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_wtbl_ht_tlv);
1041
1041
int mt76_connac_mcu_sta_cmd (struct mt76_phy * phy ,
1042
1042
struct mt76_sta_cmd_info * info )
1043
1043
{
1044
- struct mt76_vif * mvif = (struct mt76_vif * )info -> vif -> drv_priv ;
1044
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )info -> vif -> drv_priv ;
1045
1045
struct ieee80211_link_sta * link_sta ;
1046
1046
struct mt76_dev * dev = phy -> dev ;
1047
1047
struct wtbl_req_hdr * wtbl_hdr ;
@@ -1137,7 +1137,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_wtbl_ba_tlv);
1137
1137
1138
1138
int mt76_connac_mcu_uni_add_dev (struct mt76_phy * phy ,
1139
1139
struct ieee80211_bss_conf * bss_conf ,
1140
- struct mt76_vif * mvif ,
1140
+ struct mt76_vif_link * mvif ,
1141
1141
struct mt76_wcid * wcid ,
1142
1142
bool enable )
1143
1143
{
@@ -1266,7 +1266,7 @@ int mt76_connac_mcu_sta_wed_update(struct mt76_dev *dev, struct sk_buff *skb)
1266
1266
}
1267
1267
EXPORT_SYMBOL_GPL (mt76_connac_mcu_sta_wed_update );
1268
1268
1269
- int mt76_connac_mcu_sta_ba (struct mt76_dev * dev , struct mt76_vif * mvif ,
1269
+ int mt76_connac_mcu_sta_ba (struct mt76_dev * dev , struct mt76_vif_link * mvif ,
1270
1270
struct ieee80211_ampdu_params * params ,
1271
1271
int cmd , bool enable , bool tx )
1272
1272
{
@@ -1404,7 +1404,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_get_phy_mode_ext);
1404
1404
const struct ieee80211_sta_he_cap *
1405
1405
mt76_connac_get_he_phy_cap (struct mt76_phy * phy , struct ieee80211_vif * vif )
1406
1406
{
1407
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
1407
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
1408
1408
struct cfg80211_chan_def * chandef = mvif -> ctx ?
1409
1409
& mvif -> ctx -> def : & phy -> chandef ;
1410
1410
enum nl80211_band band = chandef -> chan -> band ;
@@ -1453,7 +1453,7 @@ mt76_connac_mcu_uni_bss_he_tlv(struct mt76_phy *phy, struct ieee80211_vif *vif,
1453
1453
he -> max_nss_mcs [CMD_HE_MCS_BW8080 ] = cap -> he_mcs_nss_supp .tx_mcs_80p80 ;
1454
1454
}
1455
1455
1456
- int mt76_connac_mcu_uni_set_chctx (struct mt76_phy * phy , struct mt76_vif * mvif ,
1456
+ int mt76_connac_mcu_uni_set_chctx (struct mt76_phy * phy , struct mt76_vif_link * mvif ,
1457
1457
struct ieee80211_chanctx_conf * ctx )
1458
1458
{
1459
1459
struct cfg80211_chan_def * chandef = ctx ? & ctx -> def : & phy -> chandef ;
@@ -1541,7 +1541,7 @@ int mt76_connac_mcu_uni_add_bss(struct mt76_phy *phy,
1541
1541
bool enable ,
1542
1542
struct ieee80211_chanctx_conf * ctx )
1543
1543
{
1544
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
1544
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
1545
1545
struct cfg80211_chan_def * chandef = ctx ? & ctx -> def : & phy -> chandef ;
1546
1546
enum nl80211_band band = chandef -> chan -> band ;
1547
1547
struct mt76_dev * mdev = phy -> dev ;
@@ -1667,7 +1667,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_uni_add_bss);
1667
1667
int mt76_connac_mcu_hw_scan (struct mt76_phy * phy , struct ieee80211_vif * vif ,
1668
1668
struct ieee80211_scan_request * scan_req )
1669
1669
{
1670
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
1670
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
1671
1671
struct cfg80211_scan_request * sreq = & scan_req -> req ;
1672
1672
int n_ssids = 0 , err , i , duration ;
1673
1673
int ext_channels_num = max_t (int , sreq -> n_channels - 32 , 0 );
@@ -1773,7 +1773,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_hw_scan);
1773
1773
int mt76_connac_mcu_cancel_hw_scan (struct mt76_phy * phy ,
1774
1774
struct ieee80211_vif * vif )
1775
1775
{
1776
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
1776
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
1777
1777
struct {
1778
1778
u8 seq_num ;
1779
1779
u8 is_ext_channel ;
@@ -1799,7 +1799,7 @@ int mt76_connac_mcu_sched_scan_req(struct mt76_phy *phy,
1799
1799
struct ieee80211_vif * vif ,
1800
1800
struct cfg80211_sched_scan_request * sreq )
1801
1801
{
1802
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
1802
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
1803
1803
struct ieee80211_channel * * scan_list = sreq -> channels ;
1804
1804
struct mt76_connac_mcu_scan_channel * chan ;
1805
1805
struct mt76_connac_sched_scan_req * req ;
@@ -2211,7 +2211,7 @@ int mt76_connac_mcu_set_rate_txpower(struct mt76_phy *phy)
2211
2211
EXPORT_SYMBOL_GPL (mt76_connac_mcu_set_rate_txpower );
2212
2212
2213
2213
int mt76_connac_mcu_update_arp_filter (struct mt76_dev * dev ,
2214
- struct mt76_vif * vif ,
2214
+ struct mt76_vif_link * vif ,
2215
2215
struct ieee80211_bss_conf * info )
2216
2216
{
2217
2217
struct ieee80211_vif * mvif = container_of (info , struct ieee80211_vif ,
@@ -2254,7 +2254,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_update_arp_filter);
2254
2254
int mt76_connac_mcu_set_p2p_oppps (struct ieee80211_hw * hw ,
2255
2255
struct ieee80211_vif * vif )
2256
2256
{
2257
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
2257
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
2258
2258
int ct_window = vif -> bss_conf .p2p_noa_attr .oppps_ctwindow ;
2259
2259
struct mt76_phy * phy = hw -> priv ;
2260
2260
struct {
@@ -2321,7 +2321,7 @@ int mt76_connac_mcu_update_gtk_rekey(struct ieee80211_hw *hw,
2321
2321
struct ieee80211_vif * vif ,
2322
2322
struct cfg80211_gtk_rekey_data * key )
2323
2323
{
2324
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
2324
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
2325
2325
struct mt76_connac_gtk_rekey_tlv * gtk_tlv ;
2326
2326
struct mt76_phy * phy = hw -> priv ;
2327
2327
struct sk_buff * skb ;
@@ -2362,7 +2362,7 @@ static int
2362
2362
mt76_connac_mcu_set_arp_filter (struct mt76_dev * dev , struct ieee80211_vif * vif ,
2363
2363
bool suspend )
2364
2364
{
2365
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
2365
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
2366
2366
struct {
2367
2367
struct {
2368
2368
u8 bss_idx ;
@@ -2388,7 +2388,7 @@ int
2388
2388
mt76_connac_mcu_set_gtk_rekey (struct mt76_dev * dev , struct ieee80211_vif * vif ,
2389
2389
bool suspend )
2390
2390
{
2391
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
2391
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
2392
2392
struct {
2393
2393
struct {
2394
2394
u8 bss_idx ;
@@ -2417,7 +2417,7 @@ mt76_connac_mcu_set_suspend_mode(struct mt76_dev *dev,
2417
2417
bool enable , u8 mdtim ,
2418
2418
bool wow_suspend )
2419
2419
{
2420
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
2420
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
2421
2421
struct {
2422
2422
struct {
2423
2423
u8 bss_idx ;
@@ -2448,7 +2448,7 @@ mt76_connac_mcu_set_wow_pattern(struct mt76_dev *dev,
2448
2448
u8 index , bool enable ,
2449
2449
struct cfg80211_pkt_pattern * pattern )
2450
2450
{
2451
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
2451
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
2452
2452
struct mt76_connac_wow_pattern_tlv * ptlv ;
2453
2453
struct sk_buff * skb ;
2454
2454
struct req_hdr {
@@ -2480,7 +2480,7 @@ int
2480
2480
mt76_connac_mcu_set_wow_ctrl (struct mt76_phy * phy , struct ieee80211_vif * vif ,
2481
2481
bool suspend , struct cfg80211_wowlan * wowlan )
2482
2482
{
2483
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
2483
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
2484
2484
struct mt76_dev * dev = phy -> dev ;
2485
2485
struct {
2486
2486
struct {
@@ -2689,7 +2689,7 @@ int mt76_connac_mcu_add_key(struct mt76_dev *dev, struct ieee80211_vif *vif,
2689
2689
struct ieee80211_key_conf * key , int mcu_cmd ,
2690
2690
struct mt76_wcid * wcid , enum set_key_cmd cmd )
2691
2691
{
2692
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
2692
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
2693
2693
struct sk_buff * skb ;
2694
2694
int ret ;
2695
2695
@@ -2711,7 +2711,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_add_key);
2711
2711
2712
2712
/* SIFS 20us + 512 byte beacon transmitted by 1Mbps (3906us) */
2713
2713
#define BCN_TX_ESTIMATE_TIME (4096 + 20)
2714
- void mt76_connac_mcu_bss_ext_tlv (struct sk_buff * skb , struct mt76_vif * mvif )
2714
+ void mt76_connac_mcu_bss_ext_tlv (struct sk_buff * skb , struct mt76_vif_link * mvif )
2715
2715
{
2716
2716
struct bss_info_ext_bss * ext ;
2717
2717
int ext_bss_idx , tsf_offset ;
@@ -2735,7 +2735,7 @@ int mt76_connac_mcu_bss_basic_tlv(struct sk_buff *skb,
2735
2735
struct mt76_phy * phy , u16 wlan_idx ,
2736
2736
bool enable )
2737
2737
{
2738
- struct mt76_vif * mvif = (struct mt76_vif * )vif -> drv_priv ;
2738
+ struct mt76_vif_link * mvif = (struct mt76_vif_link * )vif -> drv_priv ;
2739
2739
u32 type = vif -> p2p ? NETWORK_P2P : NETWORK_INFRA ;
2740
2740
struct bss_info_basic * bss ;
2741
2741
struct tlv * tlv ;
0 commit comments