mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-17 10:33:06 +00:00
rtl8188eu: Fix some gcc12 compiler warnings
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
903b6fcb82
commit
a36cfdfdb6
2 changed files with 34 additions and 83 deletions
|
@ -2270,10 +2270,8 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
|
|||
|
||||
#ifdef CONFIG_P2P
|
||||
if (pwdinfo->driver_interface == DRIVER_CFG80211) {
|
||||
if (ssids->ssid != NULL
|
||||
&& !memcmp(ssids->ssid, "DIRECT-", 7)
|
||||
&& rtw_get_p2p_ie((u8 *)request->ie, request->ie_len, NULL, NULL)
|
||||
) {
|
||||
if (!memcmp(ssids->ssid, "DIRECT-", 7) &&
|
||||
rtw_get_p2p_ie((u8 *)request->ie, request->ie_len, NULL, NULL)) {
|
||||
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
|
||||
rtw_p2p_enable(padapter, P2P_ROLE_DEVICE);
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue