]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
mac80211: Fix compile warning in scan.c.
authorGertjan van Wingerde <gwingerde@gmail.com>
Sun, 20 Jun 2010 18:28:07 +0000 (20:28 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Jun 2010 19:39:59 +0000 (15:39 -0400)
Fix the following compile warning:

CC [M]  net/mac80211/scan.o
net/mac80211/scan.c: In function 'ieee80211_request_internal_scan':
net/mac80211/scan.c:749:23: warning: comparison between 'enum nl80211_band' and 'enum ieee80211_band'

caused by the local variable band not being of the proper 'ieee80211_band' type.

Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/scan.c

index 36eb6dd7c75e17fcc14d7e5466ffcdcac58fd8d7..439c98d93a79cedee816fa34e1fc7e5069d2e5f5 100644 (file)
@@ -734,7 +734,7 @@ int ieee80211_request_internal_scan(struct ieee80211_sub_if_data *sdata,
 {
        struct ieee80211_local *local = sdata->local;
        int ret = -EBUSY;
-       enum nl80211_band band;
+       enum ieee80211_band band;
 
        mutex_lock(&local->scan_mtx);