Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] fix NET_RADIO=n, IEEE80211=y compile

This patch fixes the following compile error with CONFIG_NET_RADIO=n and
CONFIG_IEEE80211=y:

LD .tmp_vmlinux1
net/built-in.o: In function `ieee80211_rx':
: undefined reference to `wireless_spy_update'
make: *** [.tmp_vmlinux1] Error 1

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Adrian Bunk and committed by
John W. Linville
fd7a516e 0b154bb7

+2
+2
net/ieee80211/ieee80211_rx.c
··· 370 370 /* Put this code here so that we avoid duplicating it in all 371 371 * Rx paths. - Jean II */ 372 372 #ifdef IW_WIRELESS_SPY /* defined in iw_handler.h */ 373 + #ifdef CONFIG_NET_RADIO 373 374 /* If spy monitoring on */ 374 375 if (ieee->spy_data.spy_number > 0) { 375 376 struct iw_quality wstats; ··· 397 396 /* Update spy records */ 398 397 wireless_spy_update(ieee->dev, hdr->addr2, &wstats); 399 398 } 399 + #endif /* CONFIG_NET_RADIO */ 400 400 #endif /* IW_WIRELESS_SPY */ 401 401 402 402 #ifdef NOT_YET