Commit bf18f717 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

wifi: mt76: rename struct mt76_vif to mt76_vif_link

Preparation to use it for private bss link data instead of the full vif
on MLO capable devices.

Link: https://patch.msgid.link/20250102163508.52945-3-nbd@nbd.name


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent a24f891a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -754,7 +754,7 @@ struct mt76_testmode_data {
	} rx_stats;
};

struct mt76_vif {
struct mt76_vif_link {
	u8 idx;
	u8 omac_idx;
	u8 band_idx;
+1 −1
Original line number Diff line number Diff line
@@ -730,7 +730,7 @@ int mt7615_mac_write_txwi(struct mt7615_dev *dev, __le32 *txwi,
	u16 seqno = 0;

	if (vif) {
		struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv;
		struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv;

		omac_idx = mvif->omac_idx;
		wmm_idx = mvif->wmm_idx;
+1 −1
Original line number Diff line number Diff line
@@ -464,7 +464,7 @@ mt7615_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
	       unsigned int link_id, u16 queue,
	       const struct ieee80211_tx_queue_params *params)
{
	struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv;
	struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv;
	struct mt7615_dev *dev = mt7615_hw_dev(hw);
	int err;

+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ struct mt7615_sta {
};

struct mt7615_vif {
	struct mt76_vif mt76; /* must be first */
	struct mt76_vif_link mt76; /* must be first */
	struct mt7615_sta sta;
	bool sta_added;
};
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ mt7615_write_fw_txp(struct mt7615_dev *dev, struct mt76_tx_info *tx_info,
		txp->flags |= cpu_to_le16(MT_CT_INFO_MGMT_FRAME);

	if (vif) {
		struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv;
		struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv;

		txp->bss_idx = mvif->idx;
	}
Loading