When CONFIG_IWLWIFI_DEBUG is not set and CONFIG_IWLWIFI is set, we get this compilation warning: wireless-next-2.6/drivers/net/wireless/iwlwifi/iwl-scan.c:92: warning: 'iwl_escape_essid' defined but not used This patch (against wireless-next-2.6 tree) fixes it. Signed-off-by: Rami Rosen <ramirose@xxxxxxxxx>
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c index bf855c3..3e5fd0e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-scan.c +++ b/drivers/net/wireless/iwlwifi/iwl-scan.c @@ -69,7 +69,7 @@ static int scan_tx_ant[3] = { }; - +#ifdef CONFIG_IWLWIFI_DEBUG static int iwl_is_empty_essid(const char *essid, int essid_len) { /* Single white space is for Linksys APs */ @@ -85,9 +85,10 @@ static int iwl_is_empty_essid(const char *essid, int essid_len) return 1; } +#endif /* CONFIG_IWLWIFI_DEBUG */ - +#ifdef CONFIG_IWLWIFI_DEBUG static const char *iwl_escape_essid(const char *essid, u8 essid_len) { static char escaped[IW_ESSID_MAX_SIZE * 2 + 1]; @@ -111,7 +112,7 @@ static const char *iwl_escape_essid(const char *essid, u8 essid_len) *d = '\0'; return escaped; } - +#endif /* CONFIG_IWLWIFI_DEBUG */ /** * iwl_scan_cancel - Cancel any currently executing HW scan *