These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / staging / rtl8712 / mlme_linux.c
index 8c5a475..e4e4bde 100644 (file)
@@ -122,7 +122,8 @@ void r8712_os_indicate_disconnect(struct _adapter *adapter)
                            r8712_use_tkipkey_handler,
                            (unsigned long)adapter);
                /* Restore the PMK information to securitypriv structure
-                * for the following connection. */
+                * for the following connection.
+                */
                memcpy(&adapter->securitypriv.PMKIDList[0],
                        &backupPMKIDList[0],
                        sizeof(struct RT_PMKID_LIST) * NUM_PMKID_CACHE);
@@ -162,7 +163,7 @@ void r8712_report_sec_ie(struct _adapter *adapter, u8 authmode, u8 *sec_ie)
                        p += sprintf(p, "%02x", sec_ie[i]);
                p += sprintf(p, ")");
                memset(&wrqu, 0, sizeof(wrqu));
-               wrqu.data.length = p-buff;
+               wrqu.data.length = p - buff;
                wrqu.data.length = (wrqu.data.length < IW_CUSTOM_MAX) ?
                                   wrqu.data.length : IW_CUSTOM_MAX;
                wireless_send_event(adapter->pnetdev, IWEVCUSTOM, &wrqu, buff);