Clarifying rtl8188ee's channel wifi changing code
Hi all,
I am having a bit of trouble understanding the rtl8188ee source, specifically how its switch_channel function (rtl88e_phy_sw_chnl) works. I gather that this function calls rtl88ee_phy_sw_chnl_callback, which in turn calls _rtl88_phy_sw_chnl_step_by_step (
https://github.com/torvalds/linux/blob/master/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c#L1253
).
This is where I get lost. Where is the 'channel' variable used, other than to change the TX power? I presume it has something to do with case CMDID_RF_WRITEREG, but I am not certain.
Please explain what is going on. Thank you!
Quoted 9 lines · Farhan Khan
Hi all,
I am having a bit of trouble understanding the rtl8188ee source, specifically how its
switch_channelfunction (rtl88e_phy_sw_chnl) works. I gather that this function callsrtl88ee_phy_sw_chnl_callback, which in turn calls_rtl88_phy_sw_chnl_step_by_step(
https://github.com/torvalds/linux/blob/master/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c#L1253
).
Quoted 5 lines
This is where I get lost. Where is the 'channel' variable used, other than to change the TX power? I presume it has something to do with case
CMDID_RF_WRITEREG, but I am not certain.Please explain what is going on. Thank you!
I have no idea where you are getting those routine names, but my source does not have them, unless something has broken grep on my system.
Larry