rtl8192ce:rtl92ce_get_hw_reg():<0-0> switch case not processed
Hello,
I bought an Asus PCE-N10 PCIe Wi-Fi N card to install in my wife's computer. This morning it stopped working suddenly. Investigating the kernel logs, the following error message caught my eye:
rtl8192ce:rtl92ce_get_hw_reg():<0-0> switch case not processed
It was printed twice, 3.5 hours apart, the second time at the moment the network stopped working. I guess this is not supposed to happen. What additional information can I provide to help you debug the issue? That's the device:
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)
Subsystem: ASUSTeK Computer Inc. Device [1043:84b5]
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at e800 [size=256]
Memory at febfc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: rtl8192ce
Kernel modules: rtl8192ce
Kernel version is 4.5.4-1-default x86_64 (openSUSE Tumbleweed.)
Reloading the rtl8192ce module and restarting the network service got everything back up.
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 22 lines · Jean Delvare
Hello,
I bought an Asus PCE-N10 PCIe Wi-Fi N card to install in my wife's computer. This morning it stopped working suddenly. Investigating the kernel logs, the following error message caught my eye:
rtl8192ce:rtl92ce_get_hw_reg():<0-0> switch case not processed
It was printed twice, 3.5 hours apart, the second time at the moment the network stopped working. I guess this is not supposed to happen. What additional information can I provide to help you debug the issue? That's the device:
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)
Subsystem: ASUSTeK Computer Inc. Device [1043:84b5]
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at e800 [size=256]
Memory atfebfc000(64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: rtl8192ce
Kernel modules: rtl8192ce
Quoted 4 lines
Kernel version is 4.5.4-1-default
x86_64(openSUSE Tumbleweed.)Reloading the rtl8192ce module and restarting the network service got everything back up.
Unfortunately, that message is not as helpful as it might be.
Do you build your own kernel, or are you using openSUSE's supplied version? If the latter, I will need to think how we might debug the issue. If the former, please add the attached patch.
Larry
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c +1 -1
@@ -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 %d not processed\n" , variable);break ; } }
Quoted 25 lines · Larry Finger
Quoted 24 lines · Jean Delvare
Hello,
I bought an Asus PCE-N10 PCIe Wi-Fi N card to install in my wife's computer. This morning it stopped working suddenly. Investigating the kernel logs, the following error message caught my eye:
rtl8192ce:rtl92ce_get_hw_reg():<0-0> switch case not processed
It was printed twice, 3.5 hours apart, the second time at the moment the network stopped working. I guess this is not supposed to happen. What additional information can I provide to help you debug the issue? That's the device:
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)
Subsystem: ASUSTeK Computer Inc. Device [1043:84b5]
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at e800 [size=256]
Memory atfebfc000(64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: rtl8192ce
Kernel modules: rtl8192ceKernel version is 4.5.4-1-default
x86_64(openSUSE Tumbleweed.)
Quoted 8 lines
Quoted 2 lines
Reloading the rtl8192ce module and restarting the network service got everything back up.
Unfortunately, that message is not as helpful as it might be.
Do you build your own kernel, or are you using openSUSE's supplied version? If the latter, I will need to think how we might debug the issue. If the former, please add the attached patch.
I'm a kernel dev :-) I'll test your patch and report, thanks.
That being said, I agree it's better if drivers have useful debug messages... Makes things faster. So something like your patch should go upstream anyway. And the same improvement could be applied to various other messages of the rtlwifi driver family.
Signature · 2 lines
Jean Delvare SUSE L3 Support
Hi Larry,
Quoted 3 lines · Larry Finger
Do you build your own kernel, or are you using openSUSE's supplied version? If the latter, I will need to think how we might debug the issue. If the former, please add the attached patch.
The debug module is in place. The error message was logged 3 times today, so I should have some data for you tomorrow.
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Hi Larry,
Quoted 3 lines · Larry Finger
Do you build your own kernel, or are you using openSUSE's supplied version? If the latter, I will need to think how we might debug the issue. If the former, please add the attached patch.
Lost network this morning, but no error message. We restarted the network service, things were back up and the error message was logged then:
rtl8192ce:rtl92ce_get_hw_reg():<0-0> switch case 92 not processed
So I think this is happening when the interface is put down, and is probably not related with the loss of connectivity. But it would be good to understand and fix it nevertheless.
92 is HAL_DEF_WOWLAN. I see it is handled differently in 2 other rtlwifi drivers: rtl8192cu ignores it, while rtl8821ae processes it:
case HAL_DEF_WOWLAN: if (ppsc->wo_wlan_mode) *((bool *)(val)) = true; else *((bool *)(val)) = false; break;
I don't know what is the appropriate course of action in the case of the rtl8192ce. Let me know if you need anything else from me.
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 27 lines · Jean Delvare
Hi Larry,
Quoted 3 lines · Larry Finger
Do you build your own kernel, or are you using openSUSE's supplied version? If the latter, I will need to think how we might debug the issue. If the former, please add the attached patch.
Lost network this morning, but no error message. We restarted the network service, things were back up and the error message was logged then:
rtl8192ce:rtl92ce_get_hw_reg():<0-0> switch case 92 not processed
So I think this is happening when the interface is put down, and is probably not related with the loss of connectivity. But it would be good to understand and fix it nevertheless.
92 is
HAL_DEF_WOWLAN. I see it is handled differently in 2 other rtlwifi drivers: rtl8192cu ignores it, while rtl8821ae processes it:case HAL_DEF_WOWLAN: if (ppsc->wo_wlan_mode) *((bool *)(val)) = true; else *((bool *)(val)) = false; break;
Quoted 2 lines
I don't know what is the appropriate course of action in the case of the rtl8192ce. Let me know if you need anything else from me.
As the RTL8192CE does not support WOWLAN, the correct response is to ignore that call. Clearly, it has nothing to do with your network drops. One thing you might do is add the appropriate file in /etc/modprobe.d/ so that the module is loaded with the "ips=0" option to see if power save is messing up.
I am in the process of fixing all the instances where the log entry for the default case does not output the switch variable. With these patches, I will also handle the HAL_DEF_WOWLAN case.
I'm sorry about my original comments regarding patching the kernel. I sent that E-mail before I even read your name and address. As a long-time openSUSE user, I certainly recognize your name and your abilities.
Larry
Quoted 37 lines · Larry Finger
On 09/22/2016 04:51 AM, Jean Delvare wrote:
Hello,I bought an Asus PCE-N10 PCIe Wi-Fi N card to install in my wife's computer. This morning it stopped working suddenly. Investigating the kernel logs, the following error message caught my eye:
rtl8192ce:rtl92ce_get_hw_reg():<0-0> switch case not processed
It was printed twice, 3.5 hours apart, the second time at the moment the network stopped working. I guess this is not supposed to happen. What additional information can I provide to help you debug the issue? That's the device:
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)
Subsystem: ASUSTeK Computer Inc. Device [1043:84b5]
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at e800 [size=256]
Memory atfebfc000(64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: rtl8192ce
Kernel modules: rtl8192ceKernel version is 4.5.4-1-default
x86_64(openSUSE Tumbleweed.)Reloading the rtl8192ce module and restarting the network service got everything back up.
Quoted 6 lines
Unfortunately, that message is not as helpful as it might be.
Do you build your own kernel, or are you using openSUSE's supplied version? If the latter, I will need to think how we might debug the issue. If the former, please add the attached patch.
It might be better to add the switch value to all the RT_TRACE(,,,"switch case not processed\n"); uses in drivers/net/wireless/realtek/rtlwifi/
I'll send a patch.
PATCH 1/1 realtek: Add switch variable to 'switch case not processed' messages
Help along debugging by showing what switch/case variable is not being processed in these messages.
--- drivers/net/wireless/realtek/rtlwifi/core.c | 3 ++- drivers/net/wireless/realtek/rtlwifi/pci.c | 3 ++- drivers/net/wireless/realtek/rtlwifi/ps.c | 2 +- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c | 10 ++++++---- .../wireless/realtek/rtlwifi/rtl8192c/fw_common.c | 4 ++-- .../wireless/realtek/rtlwifi/rtl8192c/phy_common.c | 8 +++++--- drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c | 7 ++++--- drivers/net/wireless/realtek/rtlwifi/rtl8192ce/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192ce/phy.c | 7 ++----- drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192cu/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c | 7 ++----- drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8192de/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 15 +++++++-------- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c | 10 ++++++---- drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8192se/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c | 5 +++-- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c | 10 ++++++---- drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | 10 +++++----- drivers/net/wireless/realtek/rtlwifi/rtl8723be/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c | 12 +++++++----- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 20 ++++++-------------- 38 files changed, 128 insertions(+), 123 deletions(-)
drivers/net/wireless/realtek/rtlwifi/core.c +2 -1
@@ -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 ; } }
drivers/net/wireless/realtek/rtlwifi/pci.c +2 -1
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/ps.c +1 -1
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c +2 -2
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c +5 -4
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/led.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c +6 -4
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c +2 -2
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c +5 -3
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c +4 -3
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/led.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/phy.c +2 -5
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c +2 -2
@@ -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 ; } }
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/led.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c +2 -5
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c +5 -4
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192de/led.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c +7 -8
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c +2 -2
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c +5 -4
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/led.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c +6 -4
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c +5 -4
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8192se/led.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c +3 -2
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c +2 -2
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c +5 -4
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/led.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c +6 -4
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c +2 -2
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c +5 -5
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8723be/led.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c +7 -5
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c +2 -2
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c +5 -4
@@ -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 ; }
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/led.c +2 -2
@@ -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;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c +6 -14
@@ -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 ; }
Signature · 1 line
2.10.0.rc2.1.g053435c
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
Quoted 4 lines · Joe Perches
Help along debugging by showing what switch/case variable is not being processed in these messages.
Signed-off-by Joe Perches <[email protected]>
Joe,
You beat me to the patch. No problem as this one looks OK; however, I'm not familiar with the %#x format. What does it do?
Larry
Quoted 1,184 lines
--- drivers/net/wireless/realtek/rtlwifi/core.c | 3 ++- drivers/net/wireless/realtek/rtlwifi/pci.c | 3 ++- drivers/net/wireless/realtek/rtlwifi/ps.c | 2 +- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c | 10 ++++++---- .../wireless/realtek/rtlwifi/rtl8192c/fw_common.c | 4 ++-- .../wireless/realtek/rtlwifi/rtl8192c/phy_common.c | 8 +++++--- drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c | 7 ++++--- drivers/net/wireless/realtek/rtlwifi/rtl8192ce/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192ce/phy.c | 7 ++----- drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192cu/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c | 7 ++----- drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8192de/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 15 +++++++-------- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c | 10 ++++++---- drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8192se/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c | 5 +++-- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c | 10 ++++++---- drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | 10 +++++----- drivers/net/wireless/realtek/rtlwifi/rtl8723be/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c | 12 +++++++----- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 9 +++++---- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/led.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 20 ++++++-------------- 38 files changed, 128 insertions(+), 123 deletions(-)drivers/net/wireless/realtek/rtlwifi/core.c +2
-1@@ -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 ; } }drivers/net/wireless/realtek/rtlwifi/pci.c +2
-1@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/ps.c +1
-1@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c +2
-2@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c +5
-4@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8188ee/led.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c +6
-4@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c +2
-2@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c +5
-3@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c +4
-3@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192ce/led.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8192ce/phy.c +2
-5@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c +2
-2@@ -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 ; } }drivers/net/wireless/realtek/rtlwifi/rtl8192cu/led.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c +2
-5@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c +5
-4@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192de/led.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c +7
-8@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c +2
-2@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c +5
-4@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192ee/led.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c +6
-4@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c +5
-4@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8192se/led.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c +3
-2@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c +2
-2@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c +5
-4@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8723ae/led.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c +6
-4@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c +2
-2@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c +5
-5@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8723be/led.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c +7
-5@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c +2
-2@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c +5
-4@@ -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 ; }drivers/net/wireless/realtek/rtlwifi/rtl8821ae/led.c +2
-2@@ -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;drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c +6
-14@@ -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 ; }
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
Quoted 1 line · Larry Finger
I'm not familiar with the %#x format. What does it do?
Outputs SPECIAL prefix, it's the same as "0x%x"
lib/vsprintf.c:
#define SPECIAL 64 /* prefix hex with "0x", octal with "0" */
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
In reply to Joe PerchesQuoted 4 lines · Joe Perches
Help along debugging by showing what switch/case variable is not being processed in these messages.
Signed-off-by Joe Perches <[email protected]>
Thanks,
Larry
Hi Larry,
Quoted 4 lines · Larry Finger
As the RTL8192CE does not support WOWLAN, the correct response is to ignore that call. Clearly, it has nothing to do with your network drops. One thing you might do is add the appropriate file in
/etc/modprobe.d/so that the module is loaded with the "ips=0" option to see if power save is messing up.
OK, we have just added the option, I'll let you know if it makes a difference.
There are other messages logged, by the way. I did not mention them before because they don't look like errors and "switch case not processed" was my prime suspect, but maybe they would be useful to you:
wlp3s0: AP 94:a7:b7:xx:xx:xx changed bandwidth, new config is 2427 MHz, width 2 (2437/0 MHz)
wlp3s0: AP 94:a7:b7:xx:xx:xx changed bandwidth, new config is 2427 MHz, width 1 (2427/0 MHz)
wlp3s0: AP 94:a7:b7:xx:xx:xx changed bandwidth, new config is 2427 MHz, width 2 (2437/0 MHz)
It oscillates between both values. There doesn't seem to be a correlation with the failures. The timing doesn't appear to be fully random, for example these are the timestamps for this morning:
[Sat. sept. 24 09:17:16 2016]
[Sat. sept. 24 09:32:11 2016]
[Sat. sept. 24 10:27:15 2016]
[Sat. sept. 24 10:52:11 2016]
[Sat. sept. 24 12:07:16 2016]
[Sat. sept. 24 12:44:22 2016]
15 minutes, 55 minutes, 25 minutes, 75 minutes... Looks like something is checking adjusting the configuration every 5 minutes? Last one doesn't follow the pattern though (37 minutes.)
Quoted 3 lines
I am in the process of fixing all the instances where the log entry for the default case does not output the switch variable. With these patches, I will also handle the
HAL_DEF_WOWLANcase.
Great, thanks.
Quoted 3 lines
I'm sorry about my original comments regarding patching the kernel. I sent that E-mail before I even read your name and address. As a long-time openSUSE user, I certainly recognize your name and your abilities.
No worry :-)
Signature · 2 lines
Jean Delvare SUSE L3 Support
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
In reply to Joe PerchesHi Joe, Larry,
Quoted 7 lines · Joe Perches
Quoted 1 line · Larry Finger
I'm not familiar with the %#x format. What does it do?
Outputs SPECIAL prefix, it's the same as "0x%x"
lib/vsprintf.c:
#define SPECIAL 64 /* prefix hex with "0x", octal with "0" */
Is hexadecimal actually the best way to display these values? I guess it depends how they are listed in the datasheets (if there's anything like that for these chips?)
I found it a bit difficult to look up the meaning of the value. HAL_DEF_WOWLAN is an enum value, the number is not set and there's no comment. I had to count the line numbers, taking blank lines into account... I ended up pasting the whole enum to a random C file and printing the value of HAL_DEF_WOWLAN to make sure it was 92.
Would it make sense to explicitly set the enum values, or add them as comments, to make such look-ups easier?
Signature · 2 lines
Jean Delvare SUSE L3 Support
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
Quoted 2 lines · Jean Delvare
Would it make sense to explicitly set the enum values, or add them as comments, to make such look-ups easier?
If you want to create enum->#ENUM structs and "const char *" lookup functions, please be my guest.
otherwise, hex is at least a consistent way to display what should be infrequent output.
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
Quoted 9 lines · Joe Perches
Quoted 2 lines · Jean Delvare
Would it make sense to explicitly set the enum values, or add them as comments, to make such look-ups easier?
If you want to create enum->#ENUM structs and "const char *" lookup functions, please be my guest.
otherwise, hex is at least a consistent way to display what should be infrequent output.
Displaying those values as hex is OK. As Joe says, they will not be shown very often.
I have patches that makes HAL_DEF_WOWLAN be a no-op for the rest of the drivers, and one that sets the enum values for that particular statement to hex values. I also looked at the other large enums and decided that they never need the human lookup.
Larry
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
(adding Jes Sorensen to recipients)
Quoted 4 lines · Larry Finger
I have patches that makes
HAL_DEF_WOWLANbe a no-op for the rest of the drivers, and one that sets the enum values for that particular statement to hex values. I also looked at the other large enums and decided that they never need the human lookup.
Hey Larry.
There are many somewhat common realtek wireless drivers.
Not to step on your toes, but what do you think of rationalizing the switch/case statements of all the realtek drivers in a few steps:
o Reindent all the switch/case blocks to a more normal kernel style (git diff -w would show no changes here)
o cast, spacing and parenthesis reductions
Lots of odd and somewhat unique styles in various drivers, looks like too many individual authors without a style guide / code enforcer using slightly different personalized code. Glancing at the code, it looks to be similar logic, just written in different styles.
o Logic changes like
from:
if (foo) func(..., bar, ...); else func(..., baz, ...);
to:
func(..., foo ? bar : baz, ...);to make the case statement code blocks more consistent and emit somewhat smaller object code.
o Consolidation of equivalent function spanning drivers With the style only changes minimized, where possible make the drivers use common ops/callback functions.
Is there any value in that or is Jes' work going to make doing any or all of this unnecessary and futile?
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
Quoted 10 lines · Joe Perches
(adding Jes Sorensen to recipients)
Quoted 4 lines · Larry Finger
I have patches that makes
HAL_DEF_WOWLANbe a no-op for the rest of the drivers, and one that sets the enum values for that particular statement to hex values. I also looked at the other large enums and decided that they never need the human lookup.Hey Larry.
Quoted 8 lines
There are many somewhat common realtek wireless drivers.
Not to step on your toes, but what do you think of rationalizing the switch/case statements of all the realtek drivers in a few steps:
o Reindent all the switch/case blocks to a more normal kernel style (git diff -w would show no changes here)
That sounds like busy work to me, but if you want to do it, go ahead.
Quoted 6 lines
o cast, spacing and parenthesis reductions
Lots of odd and somewhat unique styles in various drivers, looks like too many individual authors without a style guide / code enforcer using slightly different personalized code. Glancing at the code, it looks to be similar logic, just written in different styles.
Same comment.
Quoted 7 lines
o Logic changes like
from:if (foo) func(..., bar, ...); else func(..., baz, ...); to: func(..., foo ? bar : baz, ...);to make the case statement code blocks more consistent and emit somewhat smaller object code.
I find if .. else constructs much easier to read than the cond ? xxxx : yyyy form. I would reject any such patches.
Quoted 3 lines
o Consolidation of equivalent function spanning drivers With the style only changes minimized, where possible make the drivers use common ops/callback functions.
The is no question that there are similar routines in different drivers. I would like to place as much as possible into common routines, but I never seem to find the time. There are too many bugs in other things I support to consider these niceties.
Quoted 2 lines
Is there any value in that or is Jes' work going to make doing any or all of this unnecessary and futile?
That is not yet determined. The only driver that is to be replaced at this point is rtl8192cu. Jes only has USB I/O for his driver. We are looking at adding SDIO, and once that is done, PCI should be possible.
Larry
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
Quoted 7 lines · Larry Finger
Quoted 2 lines · Joe Perches
Is there any value in that or is Jes' work going to make doing any or all of this unnecessary and futile?
That is not yet determined. The only driver that is to be replaced at this point is rtl8192cu. Jes only has USB I/O for his driver. We are looking at adding SDIO, and once that is done, PCI should be possible.
If someone else wants to address PCI then it could happen quite soon, but at the current schedule I don't see PCI happen in my driver for at least a year, probably more.
If you can reduce the size of rtlwifi in the mean time that probably isn't going to upset a lot of people.
Jes
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
In reply to Larry FingerQuoted 1 line · Larry Finger
On 09/24/2016 12:32 PM, Joe Perches wrote:
[]
Quoted 3 lines
o Reindent all the switch/case blocks to a more normal kernel style (git diff -w would show no changes here)
That sounds like busy work to me, but if you want to do it, go ahead.
It's really just to make the comparison case block reductions easier to verify for later steps done
Quoted 7 lines
Quoted 6 lines
o cast, spacing and parenthesis reductions
Lots of odd and somewhat unique styles in various drivers, looks like too many individual authors without a style guide / code enforcer using slightly different personalized code. Glancing at the code, it looks to be similar logic, just written in different styles.Same comment.
Same rationale
Quoted 9 lines
Quoted 7 lines
o Logic changes like
from:if (foo) func(..., bar, ...); else func(..., baz, ...); to: func(..., foo ? bar : baz, ...);to make the case statement code blocks more consistent and emit somewhat smaller object code.
I find if .. else constructs much easier to read than the cond ? xxxx : yyyy form. I would reject any such patches.
<shrug> I think object code reduction generally a good thing but then again, I'm not a maintainer here.
Quoted 7 lines
Quoted 3 lines
o Consolidation of equivalent function spanning drivers With the style only changes minimized, where possible make the drivers use common ops/callback functions.
The is no question that there are similar routines in different drivers. I would like to place as much as possible into common routines, but I never seem to find the time. There are too many bugs in other things I support to consider these niceties.
Consolidation generally reduces defects and improves ease of updating.
Quoted 1 line
Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
Quoted 27 lines · Joe Perches
Quoted 1 line · Larry Finger
On 09/24/2016 12:32 PM, Joe Perches wrote:
[]
Quoted 3 lines
o Reindent all the switch/case blocks to a more normal kernel style (git diff -w would show no changes here)
That sounds like busy work to me, but if you want to do it, go ahead.It's really just to make the comparison case block reductions easier to verify for later steps done
Quoted 7 lines
Quoted 6 lines
o cast, spacing and parenthesis reductions
Lots of odd and somewhat unique styles in various drivers, looks like too many individual authors without a style guide / code enforcer using slightly different personalized code. Glancing at the code, it looks to be similar logic, just written in different styles.Same comment.
Same rationale
Quoted 7 lines
Quoted 7 lines
o Logic changes like
from:if (foo) func(..., bar, ...); else func(..., baz, ...); to: func(..., foo ? bar : baz, ...);to make the case statement code blocks more consistent and emit somewhat smaller object code.
Quoted 5 lines
Quoted 2 lines
I find if .. else constructs much easier to read than the cond ? xxxx : yyyy form. I would reject any such patches.
<shrug> I think object code reduction generally a good thing but then again, I'm not a maintainer here.
I missed this part, but I am with Larry here - 'foo ? bar : boo' are just obfuscating the code and far less clear than if or switch statements.
Jes
RE: [PATCH] realtek: Add switch variable to 'switch case not processed' messages
In reply to Joe PerchesQuoted 5 lines
If you want to create enum->#ENUM structs and "const char *" lookup functions, please be my guest.
otherwise, hex is at least a consistent way to display what should be infrequent output.
If I've typed it right:
#define tags(x) x(A) x(B) x(C)
#define x(t) t,
enum {tags(x) tag_count};
#undef x
#define x(t) ##t,
static const char names[] = { tags(x) };
#undef x
David
Re: rtlwifi: Add switch variable to 'switch case not processed' messages
In reply to Joe PerchesQuoted 5 lines · Joe Perches
Help along debugging by showing what switch/case variable is not being processed in these messages.
Signed-off-by Joe Perches <[email protected]>Acked-by Larry Finger <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
ad5748893b27 rtlwifi: Add switch variable to 'switch case not processed' messages
Signature · 6 lines
https://patchwork.kernel.org/patch/9348573/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches