rtl8188eu: Disable parm->adhoc

It seems that this parameter is set in error - disable.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2023-07-06 11:09:38 -05:00
parent c0bef36ff6
commit 6c3f0ced60
2 changed files with 12 additions and 13 deletions

View file

@ -1170,15 +1170,14 @@ static u8 rtw_createbss_cmd(_adapter *adapter, int flags, bool adhoc,
res = _FAIL; res = _FAIL;
goto exit; goto exit;
} }
if (adhoc) { /* LWF July 6, 2023
/* for now, adhoc doesn't support ch,bw,offset request */ * Disable the setting of parm->adhoc as it seems to screw up
parm->adhoc = 1; AP operations.
} else { */
parm->adhoc = 0; parm->adhoc = 0;
parm->req_ch = req_ch; parm->req_ch = req_ch;
parm->req_bw = req_bw; parm->req_bw = req_bw;
parm->req_offset = req_offset; parm->req_offset = req_offset;
}
if (flags & RTW_CMDF_DIRECTLY) { if (flags & RTW_CMDF_DIRECTLY) {
/* no need to enqueue, do the cmd hdl directly and free cmd parameter */ /* no need to enqueue, do the cmd hdl directly and free cmd parameter */
@ -1219,19 +1218,19 @@ exit:
inline u8 rtw_create_ibss_cmd(_adapter *adapter, int flags) inline u8 rtw_create_ibss_cmd(_adapter *adapter, int flags)
{ {
/* for now, adhoc doesn't support ch,bw,offset request */ /* for now, adhoc doesn't support ch,bw,offset request */
return rtw_createbss_cmd(adapter, flags, 1, return rtw_createbss_cmd(adapter, flags, true,
0, -1, -1); 0, -1, -1);
} }
inline u8 rtw_startbss_cmd(_adapter *adapter, int flags) inline u8 rtw_startbss_cmd(_adapter *adapter, int flags)
{ {
/* excute entire AP setup cmd */ /* excute entire AP setup cmd */
return rtw_createbss_cmd(adapter, flags, 0, 0, -1, -1); return rtw_createbss_cmd(adapter, flags, false, 0, -1, -1);
} }
inline u8 rtw_change_bss_chbw_cmd(_adapter *adapter, int flags, s16 req_ch, s8 req_bw, s8 req_offset) inline u8 rtw_change_bss_chbw_cmd(_adapter *adapter, int flags, s16 req_ch, s8 req_bw, s8 req_offset)
{ {
return rtw_createbss_cmd(adapter, flags, 0, return rtw_createbss_cmd(adapter, flags, false,
req_ch, req_bw, req_offset); req_ch, req_bw, req_offset);
} }

View file

@ -12908,7 +12908,7 @@ u8 createbss_hdl(_adapter *padapter, u8 *pbuf)
start_create_ibss(padapter); start_create_ibss(padapter);
} else { } else {
pr_info("NOT an ad-hoc master\n"); pr_info("NOT an ad-hoc master\n");
ret = H2C_PARAMETERS_ERROR; return H2C_PARAMETERS_ERROR;
} }
ibss_post_hdl: ibss_post_hdl: