]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
rtlwifi: Add switch variable to 'switch case not processed' messages
authorJoe Perches <joe@perches.com>
Fri, 23 Sep 2016 18:27:19 +0000 (11:27 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Sep 2016 15:44:19 +0000 (18:44 +0300)
Help along debugging by showing what switch/case variable is not
being processed in these messages.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
38 files changed:
drivers/net/wireless/realtek/rtlwifi/core.c
drivers/net/wireless/realtek/rtlwifi/pci.c
drivers/net/wireless/realtek/rtlwifi/ps.c
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/led.c
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c
drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/led.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/led.c
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192de/led.c
drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/led.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192se/led.c
drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/led.c
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8723be/led.c
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/led.c
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c

index 7aee5ebb147daa6e46a865939cb67152ccaf2ab5..f95760c13c56eeee19229c375cc54be371f461bf 100644 (file)
@@ -765,7 +765,8 @@ static int rtl_op_config(struct ieee80211_hw *hw, u32 changed)
                                        mac->bw_40 = false;
                                        mac->bw_80 = false;
                                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                                "switch case not processed\n");
+                                                "switch case %#x not processed\n",
+                                                channel_type);
                                        break;
                        }
                }
index d12586d4f8459b40b68e17da185a2c50c0132660..0dfa9eac3926dd488262529cd536c23c7eea08be 100644 (file)
@@ -179,7 +179,8 @@ static void _rtl_pci_update_default_setting(struct ieee80211_hw *hw)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n",
+                        rtlpci->const_support_pciaspm);
                break;
        }
 
index 9a64f9b703e55c61f12600afba79832bb9ba5613..18d979affc1861ebc97dad9fe083d7159d40b746 100644 (file)
@@ -151,7 +151,7 @@ static bool rtl_ps_set_rf_state(struct ieee80211_hw *hw,
 
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", state_toset);
                break;
        }
 
index 629125658b8728678931848504be377e17849ecd..5360d533235944a94fe931ab76ce4e04439a77ab 100644 (file)
@@ -334,7 +334,7 @@ static void _rtl88e_fill_h2c_command(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", boxnum);
                        break;
                }
                isfw_read = _rtl88e_check_fw_read_last_h2c(hw, boxnum);
@@ -405,7 +405,7 @@ static void _rtl88e_fill_h2c_command(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", cmd_len);
                        break;
                }
 
index 4ab6201daf1a0ffbfb383b009d05c508fbdc6c9e..3285117845f5b8e59b5fba7ee63983b785423e82 100644 (file)
@@ -357,7 +357,7 @@ void rtl88ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break; }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process %x\n", variable);
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -571,7 +571,8 @@ void rtl88ee_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                                break;
                        default:
                                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                        "switch case not process\n");
+                                        "switch case %#x not processed\n",
+                                        e_aci);
                                break;
                        }
                }
@@ -735,7 +736,7 @@ void rtl88ee_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break; }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process %x\n", variable);
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -2352,7 +2353,7 @@ void rtl88ee_set_key(struct ieee80211_hw *hw, u32 key_index,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", enc_algo);
                        enc_algo = CAM_TKIP;
                        break;
                }
index b504bd092fc4b36e62416a6cf6dedba94b9230f3..f05c2c674165baded2af82c03ca2a84a27f3fe86 100644 (file)
@@ -62,7 +62,7 @@ void rtl88ee_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = true;
@@ -100,7 +100,7 @@ void rtl88ee_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = false;
index 7498a1218cba03db80be8ba8ce3c3c1d152228dc..fffaa92eda812fc91f03cfb2b429e11efee4006d 100644 (file)
@@ -1346,7 +1346,8 @@ static bool _rtl88e_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n",
+                                currentcmd->cmdid);
                        break;
                }
 
@@ -2128,7 +2129,7 @@ bool rtl88e_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype)
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", iotype);
                        break;
                }
        } while (false);
@@ -2166,7 +2167,8 @@ static void rtl88e_phy_set_io(struct ieee80211_hw *hw)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n",
+                        rtlphy->current_io_type);
                break;
        }
        rtlphy->set_io_inprogress = false;
@@ -2319,7 +2321,7 @@ static bool _rtl88ee_phy_set_rf_power_state(struct ieee80211_hw *hw,
                }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }
index 43fcb25c885f15d691b6ddb1300599cd0cf6b347..7d152466152b8b799ac97bd7e4fb697c7268a19a 100644 (file)
@@ -352,7 +352,7 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", boxnum);
                        break;
                }
 
@@ -456,7 +456,7 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", cmd_len);
                        break;
                }
 
index 60ab2ec4f4efd8eaa2fd3d47d5f081e31ce6d4dc..27e3d5f9ca3424bd75c7ae3d430b25c2e3700275 100644 (file)
@@ -910,7 +910,8 @@ bool _rtl92c_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n",
+                                currentcmd->cmdid);
                        break;
                }
 
@@ -1567,7 +1568,7 @@ bool rtl92c_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype)
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", iotype);
                        break;
                }
        } while (false);
@@ -1605,7 +1606,8 @@ void rtl92c_phy_set_io(struct ieee80211_hw *hw)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n",
+                        rtlphy->current_io_type);
                break;
        }
        rtlphy->set_io_inprogress = false;
index 244607951e28b16f79d010f779da2d9da24ee9c7..6d308f9b7ff9ab32a9252a4a3de4a80465fa3b7f 100644 (file)
@@ -143,7 +143,7 @@ void rtl92ce_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -367,7 +367,8 @@ void rtl92ce_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                                        break;
                                default:
                                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                                "switch case not processed\n");
+                                                "switch case %#x not processed\n",
+                                                e_aci);
                                        break;
                                }
                        }
@@ -2154,7 +2155,7 @@ void rtl92ce_set_key(struct ieee80211_hw *hw, u32 key_index,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not processed\n");
+                                "switch case %#x not processed\n", enc_algo);
                        enc_algo = CAM_TKIP;
                        break;
                }
index 8283e9b27639f5bd95350fd09652ccfded1888ed..24e483ba3fa45440c51d093a50fdcb6d2d813af4 100644 (file)
@@ -62,7 +62,7 @@ void rtl92ce_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = true;
@@ -97,7 +97,7 @@ void rtl92ce_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = false;
index 1ee5a6ae99609bd3cd7d077625991edc5c66d440..46d0d945f283a3c7fcdbb13cf360d83b17969703 100644 (file)
@@ -300,12 +300,9 @@ bool rtl92c_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
                }
                break;
        case RF90_PATH_C:
-               RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
-               break;
        case RF90_PATH_D:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", rfpath);
                break;
        default:
                break;
@@ -554,7 +551,7 @@ static bool _rtl92ce_phy_set_rf_power_state(struct ieee80211_hw *hw,
                }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }
index 8789752f8143d57161aa7c73811fa31161dfbea7..ae8f055483facb429618afb07284953ec6fd9d77 100644 (file)
@@ -1560,7 +1560,7 @@ void rtl92cu_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -1931,7 +1931,7 @@ void rtl92cu_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
index 75a2deb23af101a7c2dacf92e4e3f803cd03aed7..8514ab652520ac6b86742130f901eb03830eb3bd 100644 (file)
@@ -62,7 +62,7 @@ void rtl92cu_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = true;
@@ -95,7 +95,7 @@ void rtl92cu_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = false;
index c972fa50926dfc05fb65ff581b8103e2f7e03285..4b2976465905e3130511f1affc5ef00e1fa6e4e3 100644 (file)
@@ -277,12 +277,9 @@ bool rtl92cu_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
                }
                break;
        case RF90_PATH_C:
-               RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
-               break;
        case RF90_PATH_D:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", rfpath);
                break;
        default:
                break;
@@ -517,7 +514,7 @@ static bool _rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw,
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }
index 62ef8209718f1b3abf431b85ee1786f40b129e8e..8de29cc3ced0763f4b7ff2b18f7dbd5d0ff5b4e2 100644 (file)
@@ -435,7 +435,7 @@ static void _rtl92d_fill_h2c_command(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not processed\n");
+                                "switch case %#x not processed\n", boxnum);
                        break;
                }
                isfw_read = _rtl92d_check_fw_read_last_h2c(hw, boxnum);
@@ -512,7 +512,7 @@ static void _rtl92d_fill_h2c_command(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not processed\n");
+                                "switch case %#x not processed\n", cmd_len);
                        break;
                }
                bwrite_success = true;
index 57205514801c2bce0ee0871e5a505e1867d702a0..5369011914bb145f0273466a156f6cdbe3105830 100644 (file)
@@ -166,7 +166,7 @@ void rtl92de_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -361,7 +361,8 @@ void rtl92de_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                                break;
                        default:
                                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                        "switch case not processed\n");
+                                        "switch case %#x not processed\n",
+                                        e_aci);
                                break;
                        }
                }
@@ -502,7 +503,7 @@ void rtl92de_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
        }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -2171,7 +2172,7 @@ void rtl92de_set_key(struct ieee80211_hw *hw, u32 key_index,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not processed\n");
+                                "switch case %#x not processed\n", enc_algo);
                        enc_algo = CAM_TKIP;
                        break;
                }
index 76a57ae4af3eb77a24a44d17f44c38da106e2312..811ba57eb9bb6cab9e2a903860fdc97639b9c172 100644 (file)
@@ -71,7 +71,7 @@ void rtl92de_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = true;
@@ -106,7 +106,7 @@ void rtl92de_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = false;
index 2a4810d32182b460dac4000440145ccb5623b576..2a1edfd21b9663c87e72ff1d07d4ed37959b225a 100644 (file)
@@ -836,12 +836,9 @@ bool rtl92d_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
                }
                break;
        case RF90_PATH_C:
-               RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
-               break;
        case RF90_PATH_D:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", rfpath);
                break;
        }
        return true;
@@ -2850,7 +2847,8 @@ static bool _rtl92d_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not processed\n");
+                                "switch case %#x not processed\n",
+                                currentcmd->cmdid);
                        break;
                }
                break;
@@ -2963,7 +2961,8 @@ static void rtl92d_phy_set_io(struct ieee80211_hw *hw)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n",
+                        rtlphy->current_io_type);
                break;
        }
        rtlphy->set_io_inprogress = false;
@@ -2994,7 +2993,7 @@ bool rtl92d_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype)
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not processed\n");
+                                "switch case %#x not processed\n", iotype);
                        break;
                }
        } while (false);
@@ -3182,7 +3181,7 @@ bool rtl92d_phy_set_rf_power_state(struct ieee80211_hw *hw,
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }
index 0708eedd967132fc947e7b4b79aab22daafd3e10..b3f6a9ed15d44b03d7e8f5a210068d624e8396cb 100644 (file)
@@ -344,7 +344,7 @@ static void _rtl92ee_fill_h2c_command(struct ieee80211_hw *hw, u8 element_id,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", boxnum);
                        break;
                }
 
@@ -433,7 +433,7 @@ static void _rtl92ee_fill_h2c_command(struct ieee80211_hw *hw, u8 element_id,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", cmd_len);
                        break;
                }
 
index b07af8d152734411aef727171585dc7db778c78e..47bb6d8c891277bfabace63d27ea03f9b19c183b 100644 (file)
@@ -340,7 +340,7 @@ void rtl92ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
-                        "switch case not process %x\n", variable);
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -566,7 +566,8 @@ void rtl92ee_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                                break;
                        default:
                                RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
-                                        "switch case not process\n");
+                                        "switch case %#x not processed\n",
+                                        e_aci);
                                break;
                        }
                }
@@ -685,7 +686,7 @@ void rtl92ee_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
-                        "switch case not process %x\n", variable);
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -2463,7 +2464,7 @@ void rtl92ee_set_key(struct ieee80211_hw *hw, u32 key_index,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", enc_algo);
                        enc_algo = CAM_TKIP;
                        break;
                }
index 8388e371c8e217b1fc5d8632b41745823ef912b2..47da05dd30763db47754b524a73e39e17fd1aa79 100644 (file)
@@ -61,7 +61,7 @@ void rtl92ee_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = true;
@@ -91,7 +91,7 @@ void rtl92ee_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = false;
index beafc9a10ad85cb63f350eca5a3c3f49c8e123e0..5ad7e753c357f8671a9b5f518f1661205c57e898 100644 (file)
@@ -1927,7 +1927,8 @@ static bool _rtl92ee_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n",
+                                currentcmd->cmdid);
                        break;
                }
 
@@ -3001,7 +3002,7 @@ bool rtl92ee_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype)
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", iotype);
                        break;
                }
        } while (false);
@@ -3041,7 +3042,8 @@ static void rtl92ee_phy_set_io(struct ieee80211_hw *hw)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n",
+                        rtlphy->current_io_type);
                break;
        }
        rtlphy->set_io_inprogress = false;
@@ -3187,7 +3189,7 @@ static bool _rtl92ee_phy_set_rf_power_state(struct ieee80211_hw *hw,
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }
index ddfa0aee5bf88bd7d90ffbdf5026196261ed9184..5bad9c9ef609184983f5adaeb5001a83fe0a91aa 100644 (file)
@@ -79,7 +79,7 @@ void rtl92se_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                }
        default: {
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", variable);
                        break;
                }
        }
@@ -297,7 +297,8 @@ void rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                                        break;
                                default:
                                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                                "switch case not processed\n");
+                                                "switch case %#x not processed\n",
+                                                e_aci);
                                        break;
                                }
                        }
@@ -433,7 +434,7 @@ void rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break; }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", variable);
                break;
        }
 
@@ -2465,7 +2466,7 @@ void rtl92se_set_key(struct ieee80211_hw *hw, u32 key_index, u8 *p_macaddr,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not processed\n");
+                                "switch case %#x not processed\n", enc_algo);
                        enc_algo = CAM_TKIP;
                        break;
                }
index 44949b5cbb872e9ccbdc3416486b1d45d214c094..9849cb988186808584ddc89c80e65e1adcc2f2e4 100644 (file)
@@ -68,7 +68,7 @@ void rtl92se_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = true;
@@ -104,7 +104,7 @@ void rtl92se_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = false;
index 881821f4e243878ae75c32728a326c67c70eb81c..4bb75581ab38b649bfee11041db76839fec0fa2e 100644 (file)
@@ -442,7 +442,8 @@ static bool _rtl92s_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not processed\n");
+                                "switch case %#x not processed\n",
+                                currentcmd->cmdid);
                        break;
                }
 
@@ -648,7 +649,7 @@ bool rtl92s_phy_set_rf_power_state(struct ieee80211_hw *hw,
                        break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }
index b7c0d38ee5b5850623ce2f49554ed9e82e66c0e0..1186755e55b84447f3753af654f25b4d6d65b7ad 100644 (file)
@@ -124,7 +124,7 @@ static void _rtl8723e_fill_h2c_command(struct ieee80211_hw *hw, u8 element_id,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", boxnum);
                        break;
                }
 
@@ -230,7 +230,7 @@ static void _rtl8723e_fill_h2c_command(struct ieee80211_hw *hw, u8 element_id,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", cmd_len);
                        break;
                }
 
index ba30efc2d195b2eb91bf5f2b63bb1d801e594b73..2bf603b4e12cd0014224deac20c225491a15c21f 100644 (file)
@@ -143,7 +143,7 @@ void rtl8723e_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -366,7 +366,8 @@ void rtl8723e_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                                        break;
                                default:
                                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                                "switch case not process\n");
+                                                "switch case %#x not processed\n",
+                                                e_aci);
                                        break;
                                }
                        }
@@ -546,7 +547,7 @@ void rtl8723e_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -2225,7 +2226,7 @@ void rtl8723e_set_key(struct ieee80211_hw *hw, u32 key_index,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", enc_algo);
                        enc_algo = CAM_TKIP;
                        break;
                }
index 13173351cbfd169b711ae2bffe41f00e04182211..c7be9342136ce57f24193f7aa55214a71a3127cf 100644 (file)
@@ -63,7 +63,7 @@ void rtl8723e_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = true;
@@ -105,7 +105,7 @@ void rtl8723e_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = false;
index 601b78efedfbb34f85d52d3909e046d71eb079fc..17b58cb32d55146f8d25e23c0a9faa0df32ec082 100644 (file)
@@ -1023,7 +1023,8 @@ static bool _rtl8723e_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n",
+                                currentcmd->cmdid);
                        break;
                }
 
@@ -1499,7 +1500,7 @@ bool rtl8723e_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype)
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", iotype);
                        break;
                }
        } while (false);
@@ -1536,7 +1537,8 @@ static void rtl8723e_phy_set_io(struct ieee80211_hw *hw)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n",
+                        rtlphy->current_io_type);
                break;
        }
        rtlphy->set_io_inprogress = false;
@@ -1682,7 +1684,7 @@ static bool _rtl8723e_phy_set_rf_power_state(struct ieee80211_hw *hw,
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }
index d5da0f3c121728c4524df9775925709da3804fad..8c5c27ce8e059ddf8c8b31dcdb049e2cbd79fb67 100644 (file)
@@ -122,7 +122,7 @@ static void _rtl8723be_fill_h2c_command(struct ieee80211_hw *hw, u8 element_id,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", boxnum);
                        break;
                }
 
@@ -195,7 +195,7 @@ static void _rtl8723be_fill_h2c_command(struct ieee80211_hw *hw, u8 element_id,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", cmd_len);
                        break;
                }
 
index 82e4476cab23b83eddf6e1838b998d089d56aaa0..999c1ac3ee574ee1a9a2bc3764d78e1aeb13fb97 100644 (file)
@@ -350,7 +350,7 @@ void rtl8723be_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process %x\n", variable);
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -607,7 +607,8 @@ void rtl8723be_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                                break;
                        default:
                                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                        "switch case not process\n");
+                                        "switch case %#x not processed\n",
+                                        e_aci);
                                break;
                        }
                }
@@ -723,8 +724,7 @@ void rtl8723be_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process %x\n",
-                        variable);
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -2565,7 +2565,7 @@ void rtl8723be_set_key(struct ieee80211_hw *hw, u32 key_index,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", enc_algo);
                        enc_algo = CAM_TKIP;
                        break;
                }
index 4196efb723a224a5c27cb9523558e3809916c9e8..497913eb3b37bdba08af60820709db4c78c7deef 100644 (file)
@@ -58,7 +58,7 @@ void rtl8723be_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = true;
@@ -100,7 +100,7 @@ void rtl8723be_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = false;
index 285818df149b9ee4d07784b610f969e646a756d8..3cc2232f25caf6293c966a09dc86f1b063345b88 100644 (file)
@@ -837,7 +837,7 @@ bool rtl8723be_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
                break;
        case RF90_PATH_D:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpath);
                break;
        }
        return true;
@@ -1507,7 +1507,8 @@ static bool _rtl8723be_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n",
+                                currentcmd->cmdid);
                        break;
                }
 
@@ -2515,7 +2516,7 @@ bool rtl8723be_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype)
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", iotype);
                        break;
                }
        } while (false);
@@ -2553,7 +2554,8 @@ static void rtl8723be_phy_set_io(struct ieee80211_hw *hw)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n",
+                        rtlphy->current_io_type);
                break;
        }
        rtlphy->set_io_inprogress = false;
@@ -2705,7 +2707,7 @@ static bool _rtl8723be_phy_set_rf_power_state(struct ieee80211_hw *hw,
 
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }
index a4fc70e8c9c0db5c37a659a7e0eb262fbd60952e..b665446351a4f3f9497766758b6f32ef616418fa 100644 (file)
@@ -392,7 +392,7 @@ static void _rtl8821ae_fill_h2c_command(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", boxnum);
                        break;
                }
 
@@ -481,7 +481,7 @@ static void _rtl8821ae_fill_h2c_command(struct ieee80211_hw *hw,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", cmd_len);
                        break;
                }
 
index 0cddf1ad0fff073a6f95c15681e00f56269267ad..1281ebe0c30ac5c546508e26528ffe51d6f02754 100644 (file)
@@ -480,7 +480,7 @@ void rtl8821ae_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process %x\n", variable);
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -671,7 +671,8 @@ void rtl8821ae_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                                break;
                        default:
                                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                        "switch case not process\n");
+                                        "switch case %#x not processed\n",
+                                        e_aci);
                                break;
                        }
                }
@@ -800,7 +801,7 @@ void rtl8821ae_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                break; }
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process %x\n", variable);
+                        "switch case %#x not processed\n", variable);
                break;
        }
 }
@@ -3934,7 +3935,7 @@ void rtl8821ae_set_key(struct ieee80211_hw *hw, u32 key_index,
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", enc_algo);
                        enc_algo = CAM_TKIP;
                        break;
                }
index ba1946a0280e0ee8ae88b4443164106621432811..fcb3b28c6b8f0ff44b464a9e444cdd4b9940c459 100644 (file)
@@ -60,7 +60,7 @@ void rtl8821ae_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = true;
@@ -133,7 +133,7 @@ void rtl8821ae_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", pled->ledpin);
                break;
        }
        pled->ledon = false;
index a71bfe38e7e163624201eb3c9da4bc383785171a..5dad402171c2d363aa2fbacd7f2ee14c122f7a5d 100644 (file)
@@ -2063,12 +2063,9 @@ bool rtl8812ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
                }
                break;
        case RF90_PATH_C:
-               RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
-               break;
        case RF90_PATH_D:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpath);
                break;
        }
        return true;
@@ -2133,16 +2130,10 @@ bool rtl8821ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
                break;
 
        case RF90_PATH_B:
-               RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
-               break;
        case RF90_PATH_C:
-               RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
-               break;
        case RF90_PATH_D:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpath);
                break;
        }
        return true;
@@ -4670,7 +4661,7 @@ bool rtl8821ae_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype)
                        break;
                default:
                        RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                                "switch case not process\n");
+                                "switch case %#x not processed\n", iotype);
                        break;
                }
        } while (false);
@@ -4714,7 +4705,8 @@ static void rtl8821ae_phy_set_io(struct ieee80211_hw *hw)
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n",
+                        rtlphy->current_io_type);
                break;
        }
        rtlphy->set_io_inprogress = false;
@@ -4820,7 +4812,7 @@ static bool _rtl8821ae_phy_set_rf_power_state(struct ieee80211_hw *hw,
                break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }