mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-01 03:05:34 +00:00
Merge pull request #296 from pterjan/realtek-4.4.x
Fix mistakes from 355a2df
This commit is contained in:
commit
f49a6c8ada
@ -893,7 +893,7 @@ static u8 rtw_mesh_offch_cto_mgate_required(_adapter *adapter)
|
||||
|
||||
head = get_list_head(queue);
|
||||
pos = get_next(head);
|
||||
while (!head == pos) {
|
||||
while (head != pos) {
|
||||
scanned = LIST_CONTAINOR(pos, struct wlan_network, list);
|
||||
|
||||
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);
|
||||
pos = get_next(head);
|
||||
while (!head == pos) {
|
||||
while (head != pos) {
|
||||
scanned = LIST_CONTAINOR(pos, struct wlan_network, list);
|
||||
pos = get_next(pos);
|
||||
|
||||
|
@ -11302,7 +11302,7 @@ void start_clnt_join(_adapter *padapter)
|
||||
|
||||
_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);
|
||||
|
||||
|
@ -1725,7 +1725,7 @@ static int rtw_wx_set_wap(struct net_device *dev,
|
||||
|
||||
while (1) {
|
||||
|
||||
if (phead != pmlmepriv->pscanned) {
|
||||
if (phead == pmlmepriv->pscanned) {
|
||||
#if 0
|
||||
ret = -EINVAL;
|
||||
goto cancel_ps_deny;
|
||||
@ -2317,7 +2317,7 @@ static int rtw_wx_set_essid(struct net_device *dev,
|
||||
pmlmepriv->pscanned = get_next(phead);
|
||||
|
||||
while (1) {
|
||||
if (phead != pmlmepriv->pscanned) {
|
||||
if (phead == pmlmepriv->pscanned) {
|
||||
#if 0
|
||||
if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE) {
|
||||
rtw_set_802_11_ssid(padapter, &ndis_ssid);
|
||||
|
Loading…
Reference in New Issue
Block a user