mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7615: remove unused variable in mt7615_mcu_set_bcn
Remove tim_len in mt7615_mcu_set_bcn since it is not actually used and ieee80211_beacon_get_tim checks if tim_length is NULL Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
28d9496205
commit
827b9ade16
+2
-2
@@ -1129,10 +1129,10 @@ int mt7615_mcu_set_bcn(struct mt7615_dev *dev, struct ieee80211_vif *vif,
|
||||
/* pky_type: 0 for bcn, 1 for tim */
|
||||
.pkt_type = 0,
|
||||
};
|
||||
u16 tim_off, tim_len;
|
||||
struct sk_buff *skb;
|
||||
u16 tim_off;
|
||||
|
||||
skb = ieee80211_beacon_get_tim(mt76_hw(dev), vif, &tim_off, &tim_len);
|
||||
skb = ieee80211_beacon_get_tim(mt76_hw(dev), vif, &tim_off, NULL);
|
||||
if (!skb)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user