aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/adm8211.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c
index 7d4218206c47..a1303ae03b0d 100644
--- a/drivers/net/wireless/adm8211.c
+++ b/drivers/net/wireless/adm8211.c
@@ -1109,7 +1109,7 @@ static void adm8211_hw_init(struct ieee80211_hw *dev)
1109 u32 reg; 1109 u32 reg;
1110 u8 cline; 1110 u8 cline;
1111 1111
1112 reg = le32_to_cpu(ADM8211_CSR_READ(PAR)); 1112 reg = ADM8211_CSR_READ(PAR);
1113 reg |= ADM8211_PAR_MRLE | ADM8211_PAR_MRME; 1113 reg |= ADM8211_PAR_MRLE | ADM8211_PAR_MRME;
1114 reg &= ~(ADM8211_PAR_BAR | ADM8211_PAR_CAL); 1114 reg &= ~(ADM8211_PAR_BAR | ADM8211_PAR_CAL);
1115 1115
@@ -1702,13 +1702,9 @@ static int adm8211_tx(struct ieee80211_hw *dev, struct sk_buff *skb,
1702 int plcp, dur, len, plcp_signal, short_preamble; 1702 int plcp, dur, len, plcp_signal, short_preamble;
1703 struct ieee80211_hdr *hdr; 1703 struct ieee80211_hdr *hdr;
1704 1704
1705 if (control->tx_rate < 0) { 1705 short_preamble = !!(control->tx_rate->flags &
1706 short_preamble = 1; 1706 IEEE80211_TXCTL_SHORT_PREAMBLE);
1707 plcp_signal = -control->tx_rate->bitrate; 1707 plcp_signal = control->tx_rate->bitrate;
1708 } else {
1709 short_preamble = 0;
1710 plcp_signal = control->tx_rate->bitrate;
1711 }
1712 1708
1713 hdr = (struct ieee80211_hdr *)skb->data; 1709 hdr = (struct ieee80211_hdr *)skb->data;
1714 fc = le16_to_cpu(hdr->frame_control) & ~IEEE80211_FCTL_PROTECTED; 1710 fc = le16_to_cpu(hdr->frame_control) & ~IEEE80211_FCTL_PROTECTED;