Skip to contentSkip to conversation

staging: vt6656: Remove preamble_type setting from vnt_tx_packet.

PATCH New Malcolm Priestley 1 participant 1 message Apr 23, 2020 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 staging: vt6656: Remove preamble_type setting from vnt_tx_packet.

preamble_type is set in vnt_bss_info_changed no need to set it here.

---
 drivers/staging/vt6656/rxtx.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/staging/vt6656/rxtx.c +0 -5
index 7e15534e52ff..f56a2b02fe36 100644
@@ -729,11 +729,6 @@ int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb)
 	if (ieee80211_has_retry(hdr->frame_control))
 		tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_LRETRY);
 
-	if (tx_rate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE)
-		priv->preamble_type = PREAMBLE_SHORT;
-	else
-		priv->preamble_type = PREAMBLE_LONG;
-
 	if (tx_rate->flags & IEEE80211_TX_RC_USE_RTS_CTS) {
 		need_rts = true;
 		tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_RTS);
Signature · 1 line
2.25.1