|
@@ -275,11 +275,11 @@ u8 rtw_sitesurvey_cmd(struct adapter *padapter, struct ndis_802_11_ssid *ssid,
|
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == true)
|
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == true)
|
|
rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_SCAN, 1);
|
|
rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_SCAN, 1);
|
|
|
|
|
|
- ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
|
|
|
|
|
|
+ ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);
|
|
if (ph2c == NULL)
|
|
if (ph2c == NULL)
|
|
return _FAIL;
|
|
return _FAIL;
|
|
|
|
|
|
- psurveyPara = kzalloc(sizeof(struct sitesurvey_parm), GFP_KERNEL);
|
|
|
|
|
|
+ psurveyPara = kzalloc(sizeof(struct sitesurvey_parm), GFP_ATOMIC);
|
|
if (psurveyPara == NULL) {
|
|
if (psurveyPara == NULL) {
|
|
kfree(ph2c);
|
|
kfree(ph2c);
|
|
return _FAIL;
|
|
return _FAIL;
|
|
@@ -405,7 +405,7 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork)
|
|
else
|
|
else
|
|
RT_TRACE(_module_rtl871x_cmd_c_, _drv_notice_, ("+Join cmd: SSid =[%s]\n", pmlmepriv->assoc_ssid.Ssid));
|
|
RT_TRACE(_module_rtl871x_cmd_c_, _drv_notice_, ("+Join cmd: SSid =[%s]\n", pmlmepriv->assoc_ssid.Ssid));
|
|
|
|
|
|
- pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
|
|
|
|
|
|
+ pcmd = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);
|
|
if (pcmd == NULL) {
|
|
if (pcmd == NULL) {
|
|
res = _FAIL;
|
|
res = _FAIL;
|
|
RT_TRACE(_module_rtl871x_cmd_c_, _drv_err_, ("rtw_joinbss_cmd: memory allocate for cmd_obj fail!!!\n"));
|
|
RT_TRACE(_module_rtl871x_cmd_c_, _drv_err_, ("rtw_joinbss_cmd: memory allocate for cmd_obj fail!!!\n"));
|
|
@@ -755,13 +755,13 @@ u8 rtw_dynamic_chk_wk_cmd(struct adapter *padapter)
|
|
u8 res = _SUCCESS;
|
|
u8 res = _SUCCESS;
|
|
|
|
|
|
|
|
|
|
- ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
|
|
|
|
|
|
+ ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);
|
|
if (ph2c == NULL) {
|
|
if (ph2c == NULL) {
|
|
res = _FAIL;
|
|
res = _FAIL;
|
|
goto exit;
|
|
goto exit;
|
|
}
|
|
}
|
|
|
|
|
|
- pdrvextra_cmd_parm = kzalloc(sizeof(struct drvextra_cmd_parm), GFP_KERNEL);
|
|
|
|
|
|
+ pdrvextra_cmd_parm = kzalloc(sizeof(struct drvextra_cmd_parm), GFP_ATOMIC);
|
|
if (pdrvextra_cmd_parm == NULL) {
|
|
if (pdrvextra_cmd_parm == NULL) {
|
|
kfree(ph2c);
|
|
kfree(ph2c);
|
|
res = _FAIL;
|
|
res = _FAIL;
|
|
@@ -967,13 +967,13 @@ u8 rtw_lps_ctrl_wk_cmd(struct adapter *padapter, u8 lps_ctrl_type, u8 enqueue)
|
|
u8 res = _SUCCESS;
|
|
u8 res = _SUCCESS;
|
|
|
|
|
|
if (enqueue) {
|
|
if (enqueue) {
|
|
- ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
|
|
|
|
|
|
+ ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);
|
|
if (ph2c == NULL) {
|
|
if (ph2c == NULL) {
|
|
res = _FAIL;
|
|
res = _FAIL;
|
|
goto exit;
|
|
goto exit;
|
|
}
|
|
}
|
|
|
|
|
|
- pdrvextra_cmd_parm = kzalloc(sizeof(struct drvextra_cmd_parm), GFP_KERNEL);
|
|
|
|
|
|
+ pdrvextra_cmd_parm = kzalloc(sizeof(struct drvextra_cmd_parm), GFP_ATOMIC);
|
|
if (pdrvextra_cmd_parm == NULL) {
|
|
if (pdrvextra_cmd_parm == NULL) {
|
|
kfree(ph2c);
|
|
kfree(ph2c);
|
|
res = _FAIL;
|
|
res = _FAIL;
|
|
@@ -1010,13 +1010,13 @@ u8 rtw_rpt_timer_cfg_cmd(struct adapter *padapter, u16 min_time)
|
|
|
|
|
|
u8 res = _SUCCESS;
|
|
u8 res = _SUCCESS;
|
|
|
|
|
|
- ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
|
|
|
|
|
|
+ ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);
|
|
if (ph2c == NULL) {
|
|
if (ph2c == NULL) {
|
|
res = _FAIL;
|
|
res = _FAIL;
|
|
goto exit;
|
|
goto exit;
|
|
}
|
|
}
|
|
|
|
|
|
- pdrvextra_cmd_parm = kzalloc(sizeof(struct drvextra_cmd_parm), GFP_KERNEL);
|
|
|
|
|
|
+ pdrvextra_cmd_parm = kzalloc(sizeof(struct drvextra_cmd_parm), GFP_ATOMIC);
|
|
if (pdrvextra_cmd_parm == NULL) {
|
|
if (pdrvextra_cmd_parm == NULL) {
|
|
kfree(ph2c);
|
|
kfree(ph2c);
|
|
res = _FAIL;
|
|
res = _FAIL;
|
|
@@ -1088,13 +1088,13 @@ u8 rtw_ps_cmd(struct adapter *padapter)
|
|
|
|
|
|
u8 res = _SUCCESS;
|
|
u8 res = _SUCCESS;
|
|
|
|
|
|
- ppscmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
|
|
|
|
|
|
+ ppscmd = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);
|
|
if (ppscmd == NULL) {
|
|
if (ppscmd == NULL) {
|
|
res = _FAIL;
|
|
res = _FAIL;
|
|
goto exit;
|
|
goto exit;
|
|
}
|
|
}
|
|
|
|
|
|
- pdrvextra_cmd_parm = kzalloc(sizeof(struct drvextra_cmd_parm), GFP_KERNEL);
|
|
|
|
|
|
+ pdrvextra_cmd_parm = kzalloc(sizeof(struct drvextra_cmd_parm), GFP_ATOMIC);
|
|
if (pdrvextra_cmd_parm == NULL) {
|
|
if (pdrvextra_cmd_parm == NULL) {
|
|
kfree(ppscmd);
|
|
kfree(ppscmd);
|
|
res = _FAIL;
|
|
res = _FAIL;
|