]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Dec 2012 18:00:00 +0000 (13:00 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Dec 2012 18:00:00 +0000 (13:00 -0500)
drivers/net/wireless/Makefile
drivers/net/wireless/rt2x00/rt2x00dev.c

index 062dfdff63645853762e6f25b5eb08e1e72c9e16..67156efe14c4217f887e8bbb2be988e10945c122 100644 (file)
@@ -47,7 +47,7 @@ obj-$(CONFIG_RT2X00)  += rt2x00/
 
 obj-$(CONFIG_P54_COMMON)       += p54/
 
-obj-$(CONFIG_ATH_COMMON)       += ath/
+obj-$(CONFIG_ATH_CARDS)                += ath/
 
 obj-$(CONFIG_MAC80211_HWSIM)   += mac80211_hwsim.o
 
index 4ffb6a584cd0c406509f8d8bf3ba1f32cf209ad2..44f8b3f3cbede976cb97ab132f032a1d136549e1 100644 (file)
@@ -685,6 +685,14 @@ void rt2x00lib_rxdone(struct queue_entry *entry, gfp_t gfp)
         * to mac80211.
         */
        rx_status = IEEE80211_SKB_RXCB(entry->skb);
+
+       /* Ensure that all fields of rx_status are initialized
+        * properly. The skb->cb array was used for driver
+        * specific informations, so rx_status might contain
+        * garbage.
+        */
+       memset(rx_status, 0, sizeof(*rx_status));
+
        rx_status->mactime = rxdesc.timestamp;
        rx_status->band = rt2x00dev->curr_band;
        rx_status->freq = rt2x00dev->curr_freq;