Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit b268af9

Browse files
Benjamin Lingregkh
Benjamin Lin
authored andcommitted
wifi: mt76: mt7915: add dummy HW offload of IEEE 802.11 fragmentation
[ Upstream commit f2cc859 ] Currently, CONNAC2 series do not support encryption for fragmented Tx frames. Therefore, add dummy function mt7915_set_frag_threshold() to prevent SW IEEE 802.11 fragmentation. Signed-off-by: Benjamin Lin <benjamin-jw.lin@mediatek.com> Link: https://patch.msgid.link/20240827093011.18621-16-nbd@nbd.name Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 479cac4 commit b268af9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

drivers/net/wireless/mediatek/mt76/mt7915/init.c

+1
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ mt7915_init_wiphy(struct mt7915_phy *phy)
400400
ieee80211_hw_set(hw, SUPPORTS_RX_DECAP_OFFLOAD);
401401
ieee80211_hw_set(hw, SUPPORTS_MULTI_BSSID);
402402
ieee80211_hw_set(hw, WANT_MONITOR_VIF);
403+
ieee80211_hw_set(hw, SUPPORTS_TX_FRAG);
403404

404405
hw->max_tx_fragments = 4;
405406

drivers/net/wireless/mediatek/mt76/mt7915/main.c

+7
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,12 @@ mt7915_twt_teardown_request(struct ieee80211_hw *hw,
15771577
mutex_unlock(&dev->mt76.mutex);
15781578
}
15791579

1580+
static int
1581+
mt7915_set_frag_threshold(struct ieee80211_hw *hw, u32 val)
1582+
{
1583+
return 0;
1584+
}
1585+
15801586
static int
15811587
mt7915_set_radar_background(struct ieee80211_hw *hw,
15821588
struct cfg80211_chan_def *chandef)
@@ -1707,6 +1713,7 @@ const struct ieee80211_ops mt7915_ops = {
17071713
.sta_set_decap_offload = mt7915_sta_set_decap_offload,
17081714
.add_twt_setup = mt7915_mac_add_twt_setup,
17091715
.twt_teardown_request = mt7915_twt_teardown_request,
1716+
.set_frag_threshold = mt7915_set_frag_threshold,
17101717
CFG80211_TESTMODE_CMD(mt76_testmode_cmd)
17111718
CFG80211_TESTMODE_DUMP(mt76_testmode_dump)
17121719
#ifdef CONFIG_MAC80211_DEBUGFS

0 commit comments

Comments
 (0)