Remove WIRELESS_MODE_N_5G and WIRELESS_MODE_A which are not supported by hardware to remove dead code and increase readability. Tested with rtl8192e on wireless modes: B, G, N_24G Transferred this patch over wlan connection of rtl8192e Philipp Hortmann (7): staging: rtl8192e: Remove rtl92e_config_phy staging: rtl8192e: Remove _rtl92e_get_supported_wireless_mode staging: rtl8192e: Remove 5G wireless_mode in rtl92e_set_wireless_mode staging: rtl8192e: Remove unused if clauses in rtl92e_set_wireless_mode staging: rtl8192e: Remove wireless modes A, N_5G from _rtl92e_hwconfig staging: rtl8192e: Remove wireless modes A, N_5G from rtl92e_set_channel staging: rtl8192e: Remove wireless mode WIRELESS_MODE_N_5G .../staging/rtl8192e/rtl8192e/r8192E_dev.c | 19 +------- .../staging/rtl8192e/rtl8192e/r8192E_phy.c | 18 -------- .../staging/rtl8192e/rtl8192e/r8192E_phy.h | 1 - drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 43 ++++--------------- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 6 +-- 5 files changed, 12 insertions(+), 75 deletions(-) -- 2.39.2