diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-12-19 13:00:00 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-12-19 13:00:00 -0500 |
commit | d67df2b9edfc42ccc0a9ee5332e2821d487d6b3b (patch) | |
tree | a6e40732cfeecebca79a76ef2bb28c428ba1ec18 | |
parent | c1e37ea287979052e3eab441e58da3899a8e2389 (diff) | |
parent | 009b969632137f91534db91c19d62f1ae21ba8a0 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
-rw-r--r-- | drivers/net/wireless/Makefile | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/wireless/Makefile b/drivers/net/wireless/Makefile index 062dfdff6364..67156efe14c4 100644 --- a/drivers/net/wireless/Makefile +++ b/drivers/net/wireless/Makefile | |||
@@ -47,7 +47,7 @@ obj-$(CONFIG_RT2X00) += rt2x00/ | |||
47 | 47 | ||
48 | obj-$(CONFIG_P54_COMMON) += p54/ | 48 | obj-$(CONFIG_P54_COMMON) += p54/ |
49 | 49 | ||
50 | obj-$(CONFIG_ATH_COMMON) += ath/ | 50 | obj-$(CONFIG_ATH_CARDS) += ath/ |
51 | 51 | ||
52 | obj-$(CONFIG_MAC80211_HWSIM) += mac80211_hwsim.o | 52 | obj-$(CONFIG_MAC80211_HWSIM) += mac80211_hwsim.o |
53 | 53 | ||
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 4ffb6a584cd0..44f8b3f3cbed 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -685,6 +685,14 @@ void rt2x00lib_rxdone(struct queue_entry *entry, gfp_t gfp) | |||
685 | * to mac80211. | 685 | * to mac80211. |
686 | */ | 686 | */ |
687 | rx_status = IEEE80211_SKB_RXCB(entry->skb); | 687 | rx_status = IEEE80211_SKB_RXCB(entry->skb); |
688 | |||
689 | /* Ensure that all fields of rx_status are initialized | ||
690 | * properly. The skb->cb array was used for driver | ||
691 | * specific informations, so rx_status might contain | ||
692 | * garbage. | ||
693 | */ | ||
694 | memset(rx_status, 0, sizeof(*rx_status)); | ||
695 | |||
688 | rx_status->mactime = rxdesc.timestamp; | 696 | rx_status->mactime = rxdesc.timestamp; |
689 | rx_status->band = rt2x00dev->curr_band; | 697 | rx_status->band = rt2x00dev->curr_band; |
690 | rx_status->freq = rt2x00dev->curr_freq; | 698 | rx_status->freq = rt2x00dev->curr_freq; |