Search Linux Wireless

[PATCH 3/8] mac80211: fix possible compile warning in michael.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The warning doesn't show up due to duplicate including, but it's worth
fixing it.

net/mac80211//michael.h:22:4: warning: ‘struct ieee80211_hdr’ declared inside parameter list [enabled by default]
    const u8 *data, size_t data_len, u8 *mic);
    ^
net/mac80211//michael.h:22:4: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Signed-off-by: Zhao, Gang <gamerh2o@xxxxxxxxx>
---
 net/mac80211/michael.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/michael.h b/net/mac80211/michael.h
index 3b848da..b259547 100644
--- a/net/mac80211/michael.h
+++ b/net/mac80211/michael.h
@@ -10,7 +10,7 @@
 #ifndef MICHAEL_H
 #define MICHAEL_H
 
-#include <linux/types.h>
+#include <linux/ieee80211.h>
 
 #define MICHAEL_MIC_LEN 8
 
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux