mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-08 20:35:07 +00:00
Adding back a working fix for update channel info
This commit is contained in:
parent
2f5c8e6ea9
commit
3c9b7800a6
@ -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;
|
||||
}
|
||||
|
10564
os_dep/linux/ioctl_cfg80211.c.orig
Normal file
10564
os_dep/linux/ioctl_cfg80211.c.orig
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user