Adding back a working fix for update channel info

This commit is contained in:
kimocoder 2019-09-19 21:28:03 +02:00
parent 2f5c8e6ea9
commit 3c9b7800a6
2 changed files with 10571 additions and 0 deletions

View File

@ -6127,7 +6127,11 @@ static int cfg80211_rtw_set_channel(struct wiphy *wiphy
RTW_INFO(FUNC_ADPT_FMT" ch:%d bw:%d, offset:%d\n"
, FUNC_ADPT_ARG(padapter), chan_target, chan_width, chan_offset);
padapter->mlmeextpriv.cur_channel = target_channal;
rtw_ps_deny(padapter, PS_DENY_IOCTL);
//LeaveAllPowerSaveModeDirect(padapter); /* leave PS mode for guaranteeing to access hw register successfully */
rtw_set_chbw_cmd(padapter, chan_target, chan_width, chan_offset, RTW_CMDF_WAIT_ACK);
rtw_ps_deny_cancel(padapter, PS_DENY_IOCTL);
return 0;
}
@ -6227,7 +6231,10 @@ static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
RTW_INFO(FUNC_ADPT_FMT" ch:%d bw:%d, offset:%d\n"
, FUNC_ADPT_ARG(padapter), target_channal, target_width, target_offset);
padapter->mlmeextpriv.cur_channel = target_channal;
rtw_ps_deny(padapter, PS_DENY_IOCTL);
rtw_set_chbw_cmd(padapter, target_channal, target_width, target_offset, RTW_CMDF_WAIT_ACK);
rtw_ps_deny_cancel(padapter, PS_DENY_IOCTL);
return 0;
}

File diff suppressed because it is too large Load Diff