Merge "SDK set's channel 12 and 13 also in 11B mode incorrectly."
This commit is contained in:
committed by
QuIC Gerrit Code Review
commit
14a3ea2c0a
4
softap/sdk/qsap_api.c
Normal file → Executable file
4
softap/sdk/qsap_api.c
Normal file → Executable file
@@ -2084,9 +2084,9 @@ static int qsap_set_channel(s32 channel, s8 *tbuf, u32 *tlen)
|
|||||||
return eERR_UNKNOWN;
|
return eERR_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** If the operating mode is NOT 'B' and the channel to be set is 12, 13 or 14
|
/** If the operating mode is NOT 'B' and the channel to be set is 14
|
||||||
* then change the operating mode to 'N' mode */
|
* then change the operating mode to 'N' mode */
|
||||||
if(strcmp(hw_mode[HW_MODE_B], pcfgval) && (channel > 11)) {
|
if(strcmp(hw_mode[HW_MODE_B], pcfgval) && (channel > 13)) {
|
||||||
/** Change the operating mode to 'B' */
|
/** Change the operating mode to 'B' */
|
||||||
ulen = *tlen;
|
ulen = *tlen;
|
||||||
if(eSUCCESS != qsap_write_cfg(pcfg, &cmd_list[eCMD_HW_MODE], hw_mode[HW_MODE_B], tbuf, &ulen, HOSTAPD_CONF_FILE)) {
|
if(eSUCCESS != qsap_write_cfg(pcfg, &cmd_list[eCMD_HW_MODE], hw_mode[HW_MODE_B], tbuf, &ulen, HOSTAPD_CONF_FILE)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user