aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt73usb.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 45f8f744a12d..7cdc80a122bb 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1665,6 +1665,8 @@ static int rt2500usb_beacon_update(struct ieee80211_hw *hw,
1665 * First we create the beacon. 1665 * First we create the beacon.
1666 */ 1666 */
1667 skb_push(skb, ring->desc_size); 1667 skb_push(skb, ring->desc_size);
1668 memset(skb->data, 0, ring->desc_size);
1669
1668 rt2x00lib_write_tx_desc(rt2x00dev, (struct data_desc *)skb->data, 1670 rt2x00lib_write_tx_desc(rt2x00dev, (struct data_desc *)skb->data,
1669 (struct ieee80211_hdr *)(skb->data + 1671 (struct ieee80211_hdr *)(skb->data +
1670 ring->desc_size), 1672 ring->desc_size),
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 1a869a5cbe91..01dbef19d651 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -2437,6 +2437,8 @@ static int rt61pci_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb,
2437 * First we create the beacon. 2437 * First we create the beacon.
2438 */ 2438 */
2439 skb_push(skb, TXD_DESC_SIZE); 2439 skb_push(skb, TXD_DESC_SIZE);
2440 memset(skb->data, 0, TXD_DESC_SIZE);
2441
2440 rt2x00lib_write_tx_desc(rt2x00dev, (struct data_desc *)skb->data, 2442 rt2x00lib_write_tx_desc(rt2x00dev, (struct data_desc *)skb->data,
2441 (struct ieee80211_hdr *)(skb->data + 2443 (struct ieee80211_hdr *)(skb->data +
2442 TXD_DESC_SIZE), 2444 TXD_DESC_SIZE),
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c
index 67a1e3750d4d..3e42759473c3 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
@@ -1939,6 +1939,8 @@ static int rt73usb_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb,
1939 * First we create the beacon. 1939 * First we create the beacon.
1940 */ 1940 */
1941 skb_push(skb, TXD_DESC_SIZE); 1941 skb_push(skb, TXD_DESC_SIZE);
1942 memset(skb->data, 0, TXD_DESC_SIZE);
1943
1942 rt2x00lib_write_tx_desc(rt2x00dev, (struct data_desc *)skb->data, 1944 rt2x00lib_write_tx_desc(rt2x00dev, (struct data_desc *)skb->data,
1943 (struct ieee80211_hdr *)(skb->data + 1945 (struct ieee80211_hdr *)(skb->data +
1944 TXD_DESC_SIZE), 1946 TXD_DESC_SIZE),