mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x2: remove mt76x2_mac_skb_tx_overhead, it is unused
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -568,26 +568,6 @@ int mt76x2_mac_shared_key_setup(struct mt76x2_dev *dev, u8 vif_idx, u8 key_idx,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mt76x2_mac_skb_tx_overhead(struct mt76x2_dev *dev, struct sk_buff *skb)
|
||||
{
|
||||
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
|
||||
struct ieee80211_key_conf *key = info->control.hw_key;
|
||||
int overhead;
|
||||
|
||||
if (!key)
|
||||
return 0;
|
||||
|
||||
overhead = key->icv_len;
|
||||
if (!(key->flags & IEEE80211_KEY_FLAG_GENERATE_IV))
|
||||
overhead += key->iv_len;
|
||||
|
||||
if (!(key->flags & IEEE80211_KEY_FLAG_GENERATE_MMIC) &&
|
||||
key->cipher == WLAN_CIPHER_SUITE_TKIP)
|
||||
overhead += 8;
|
||||
|
||||
return overhead;
|
||||
}
|
||||
|
||||
static int
|
||||
mt76_write_beacon(struct mt76x2_dev *dev, int offset, struct sk_buff *skb)
|
||||
{
|
||||
|
||||
@@ -171,8 +171,6 @@ void mt76x2_mac_wcid_set_rate(struct mt76x2_dev *dev, struct mt76_wcid *wcid,
|
||||
int mt76x2_mac_shared_key_setup(struct mt76x2_dev *dev, u8 vif_idx, u8 key_idx,
|
||||
struct ieee80211_key_conf *key);
|
||||
|
||||
int mt76x2_mac_skb_tx_overhead(struct mt76x2_dev *dev, struct sk_buff *skb);
|
||||
|
||||
int mt76x2_mac_set_beacon(struct mt76x2_dev *dev, u8 vif_idx, struct sk_buff *skb);
|
||||
void mt76x2_mac_set_beacon_enable(struct mt76x2_dev *dev, u8 vif_idx, bool val);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user