mwifiex: make error values consistent in mwifiex_update_bss_desc_with_ie()

Surrounding code uses -ERRNO as a result, so don't pass plain -1.

Signed-off-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Pavel Machek
2019-07-24 11:50:15 +02:00
committed by Kalle Valo
parent 9236c1250c
commit 6334dea888
+1 -1
View File
@@ -1243,7 +1243,7 @@ int mwifiex_update_bss_desc_with_ie(struct mwifiex_adapter *adapter,
mwifiex_dbg(adapter, ERROR,
"err: InterpretIE: in processing\t"
"IE, bytes left < IE length\n");
return -1;
return -EINVAL;
}
switch (element_id) {
case WLAN_EID_SSID: