Fix build for kernel 4.13 and later from quickreflex patch

This commit is contained in:
procount 2018-02-27 13:58:15 +00:00
parent c459fddba4
commit 172e344ac2
8 changed files with 62 additions and 21 deletions

View file

@ -1830,7 +1830,7 @@ static void traffic_status_watchdog(struct adapter *padapter)
pmlmepriv->LinkDetectInfo.NumTxOkInPeriod) > 8 ) ||
(pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod > 2))
bEnterPS = false;
else
else
bEnterPS = true;
/* LeisurePS only work in infra mode. */

View file

@ -236,7 +236,8 @@ void rtw_IOL_cmd_buf_dump(struct adapter *Adapter, int buf_len, u8 *pbuf)
for (i =0;i< buf_len;i++) {
printk("%02x-",*(pbuf+i));
if (j%32 == 0) printk("\n");j++;
if (j%32 == 0) printk("\n");
j++;
}
printk("\n");
printk("============= ioreg_cmd len = %d ===============\n", buf_len);

View file

@ -52,7 +52,7 @@ void _ips_enter(struct adapter * padapter)
if (rf_off == pwrpriv->change_rfpwrstate )
{
pwrpriv->bpower_saving = true;
DBG_88E_LEVEL(_drv_always_, "nolinked power save enter\n");
DBG_88E_LEVEL(_drv_info_, "nolinked power save enter\n");
if (pwrpriv->ips_mode == IPS_LEVEL_2)
pwrpriv->bkeepfwalive = true;
@ -88,7 +88,7 @@ int _ips_leave(struct adapter * padapter)
if ((result = rtw_ips_pwr_up(padapter)) == _SUCCESS) {
pwrpriv->rf_pwrstate = rf_on;
}
DBG_88E_LEVEL(_drv_always_, "nolinked power save leave\n");
DBG_88E_LEVEL(_drv_info_, "nolinked power save leave\n");
DBG_88E("==> ips_leave.....LED(0x%08x)...\n", rtw_read32(padapter, 0x4c));
pwrpriv->bips_processing = false;

View file

@ -2003,7 +2003,7 @@ void update_bmc_sta_support_rate(struct adapter *padapter, u32 mac_id)
}
else
{
memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_ofdm, 4);
memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_ofdm, 3);
}
}