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>alistair/sunxi64-5.4-dsi
parent
9236c1250c
commit
6334dea888
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue