aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/p54common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54common.c b/drivers/net/wireless/p54common.c
index 424de9f4d5e7..9ae3be43156a 100644
--- a/drivers/net/wireless/p54common.c
+++ b/drivers/net/wireless/p54common.c
@@ -59,7 +59,7 @@ static struct ieee80211_channel p54_channels[] = {
59 { .center_freq = 2484, .hw_value = 14, }, 59 { .center_freq = 2484, .hw_value = 14, },
60}; 60};
61 61
62struct ieee80211_supported_band band_2GHz = { 62static struct ieee80211_supported_band band_2GHz = {
63 .channels = p54_channels, 63 .channels = p54_channels,
64 .n_channels = ARRAY_SIZE(p54_channels), 64 .n_channels = ARRAY_SIZE(p54_channels),
65 .bitrates = p54_rates, 65 .bitrates = p54_rates,
@@ -389,7 +389,7 @@ static void p54_rx_frame_sent(struct ieee80211_hw *dev, struct sk_buff *skb)
389 while (entry != (struct sk_buff *)&priv->tx_queue) { 389 while (entry != (struct sk_buff *)&priv->tx_queue) {
390 range = (struct memrecord *)&entry->cb; 390 range = (struct memrecord *)&entry->cb;
391 if (range->start_addr == addr) { 391 if (range->start_addr == addr) {
392 struct ieee80211_tx_status status = {{0}}; 392 struct ieee80211_tx_status status;
393 struct p54_control_hdr *entry_hdr; 393 struct p54_control_hdr *entry_hdr;
394 struct p54_tx_control_allocdata *entry_data; 394 struct p54_tx_control_allocdata *entry_data;
395 int pad = 0; 395 int pad = 0;
@@ -405,6 +405,7 @@ static void p54_rx_frame_sent(struct ieee80211_hw *dev, struct sk_buff *skb)
405 kfree_skb(entry); 405 kfree_skb(entry);
406 break; 406 break;
407 } 407 }
408 memset(&status, 0, sizeof(status));
408 memcpy(&status.control, range->control, 409 memcpy(&status.control, range->control,
409 sizeof(status.control)); 410 sizeof(status.control));
410 kfree(range->control); 411 kfree(range->control);