Merge pull request #296 from pterjan/realtek-4.4.x

Fix mistakes from 355a2df
This commit is contained in:
Carlos Garcés 2022-11-17 20:32:02 +01:00 committed by GitHub
commit f49a6c8ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -893,7 +893,7 @@ static u8 rtw_mesh_offch_cto_mgate_required(_adapter *adapter)
head = get_list_head(queue); head = get_list_head(queue);
pos = get_next(head); pos = get_next(head);
while (!head == pos) { while (head != pos) {
scanned = LIST_CONTAINOR(pos, struct wlan_network, list); scanned = LIST_CONTAINOR(pos, struct wlan_network, list);
if (rtw_get_passing_time_ms(scanned->last_scanned) < mcfg->peer_sel_policy.scanr_exp_ms if (rtw_get_passing_time_ms(scanned->last_scanned) < mcfg->peer_sel_policy.scanr_exp_ms
@ -979,7 +979,7 @@ u8 rtw_mesh_select_operating_ch(_adapter *adapter)
head = get_list_head(queue); head = get_list_head(queue);
pos = get_next(head); pos = get_next(head);
while (!head == pos) { while (head != pos) {
scanned = LIST_CONTAINOR(pos, struct wlan_network, list); scanned = LIST_CONTAINOR(pos, struct wlan_network, list);
pos = get_next(pos); pos = get_next(pos);

View File

@ -11302,7 +11302,7 @@ void start_clnt_join(_adapter *padapter)
_enter_critical_bh(&(padapter->mlmepriv.scanned_queue.lock), &irqL); _enter_critical_bh(&(padapter->mlmepriv.scanned_queue.lock), &irqL);
for (pos = get_next(head); !head == pos; pos = get_next(pos)) { for (pos = get_next(head); head != pos; pos = get_next(pos)) {
scanned = LIST_CONTAINOR(pos, struct wlan_network, list); scanned = LIST_CONTAINOR(pos, struct wlan_network, list);

View File

@ -1725,7 +1725,7 @@ static int rtw_wx_set_wap(struct net_device *dev,
while (1) { while (1) {
if (phead != pmlmepriv->pscanned) { if (phead == pmlmepriv->pscanned) {
#if 0 #if 0
ret = -EINVAL; ret = -EINVAL;
goto cancel_ps_deny; goto cancel_ps_deny;
@ -2317,7 +2317,7 @@ static int rtw_wx_set_essid(struct net_device *dev,
pmlmepriv->pscanned = get_next(phead); pmlmepriv->pscanned = get_next(phead);
while (1) { while (1) {
if (phead != pmlmepriv->pscanned) { if (phead == pmlmepriv->pscanned) {
#if 0 #if 0
if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE) { if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE) {
rtw_set_802_11_ssid(padapter, &ndis_ssid); rtw_set_802_11_ssid(padapter, &ndis_ssid);