IS_DOT11D_ENABLE() returns always false. Remove dead code accordingly. Tested with rtl8192e (WLL6130-D99) in Mode n (12.5 MB/s) Transferred this patch over wlan connection of rtl8192e. Philipp Hortmann (14): staging: rtl8192e: Remove unexecuted rtllib_extract_country_ie() staging: rtl8192e: Remove unused function dot11d_update_country() staging: rtl8192e: Remove IS_DOT11D_ENABLE(ieee) staging: rtl8192e: Remove unused function dot11d_scan_complete() staging: rtl8192e: Remove unused function dot11d_reset() staging: rtl8192e: Remove unused macros IS_EQUAL_CIE_SRC and friends staging: rtl8192e: Remove unused function copy_mac_addr() staging: rtl8192e: Remove unused variable dot11d_info->state staging: rtl8192e: Remove unused variables from struct rt_dot11d_info staging: rtl8192e: Remove unused variable country_watchdog staging: rtl8192e: Remove unused variable global_domain staging: rtl8192e: Remove unused function dot11d_init() staging: rtl8192e: Remove unused struct chnl_txpow_triple staging: rtl8192e: Remove unused variable bss_start_channel drivers/staging/rtl8192e/dot11d.c | 93 -------------------- drivers/staging/rtl8192e/dot11d.h | 56 +----------- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 1 - drivers/staging/rtl8192e/rtllib.h | 3 - drivers/staging/rtl8192e/rtllib_rx.c | 31 ------- drivers/staging/rtl8192e/rtllib_softmac.c | 20 ----- 6 files changed, 1 insertion(+), 203 deletions(-) -- 2.42.0