Merge "SDK set's channel 12 and 13 also in 11B mode incorrectly."

This commit is contained in:
Linux Build Service Account
2011-07-08 20:31:42 -07:00
committed by QuIC Gerrit Code Review

4
softap/sdk/qsap_api.c Normal file → Executable file
View File

@@ -2084,9 +2084,9 @@ static int qsap_set_channel(s32 channel, s8 *tbuf, u32 *tlen)
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 */
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' */
ulen = *tlen;
if(eSUCCESS != qsap_write_cfg(pcfg, &cmd_list[eCMD_HW_MODE], hw_mode[HW_MODE_B], tbuf, &ulen, HOSTAPD_CONF_FILE)) {