diff options
author | Ivan Safonov <insafonov@gmail.com> | 2015-10-27 22:24:24 +0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-29 09:09:08 +0900 |
commit | b546c0f9c3fc8e5a20aff2ac984472a7f33ef9cc (patch) | |
tree | 98aad9859df3264db097c8bbf6afd4e334bba5c2 /drivers/staging | |
parent | 628bd1c057157a67f40a5acb6dd58278ade018bf (diff) | |
download | linux-stable-b546c0f9c3fc8e5a20aff2ac984472a7f33ef9cc.tar.gz linux-stable-b546c0f9c3fc8e5a20aff2ac984472a7f33ef9cc.tar.bz2 linux-stable-b546c0f9c3fc8e5a20aff2ac984472a7f33ef9cc.zip |
staging: rtl8188eu: increment placed into for loop header
The increment at the end of the cycle, and it can be placed in the loop header.
Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index 4e6f1a87d625..d900546b672f 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c @@ -1181,7 +1181,7 @@ static void issue_assocreq(struct adapter *padapter) } /* vendor specific IE, such as WPA, WMM, WPS */ - for (i = sizeof(struct ndis_802_11_fixed_ie); i < pmlmeinfo->network.IELength;) { + for (i = sizeof(struct ndis_802_11_fixed_ie); i < pmlmeinfo->network.IELength; i += (pIE->Length + 2)) { pIE = (struct ndis_802_11_var_ie *)(pmlmeinfo->network.IEs + i); switch (pIE->ElementID) { @@ -1202,7 +1202,6 @@ static void issue_assocreq(struct adapter *padapter) default: break; } - i += (pIE->Length + 2); } if (pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_REALTEK) |