Commit 6334dea8 authored by Pavel Machek's avatar Pavel Machek Committed by Kalle Valo

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: default avatarPavel Machek <pavel@denx.de>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 9236c125
...@@ -1243,7 +1243,7 @@ int mwifiex_update_bss_desc_with_ie(struct mwifiex_adapter *adapter, ...@@ -1243,7 +1243,7 @@ int mwifiex_update_bss_desc_with_ie(struct mwifiex_adapter *adapter,
mwifiex_dbg(adapter, ERROR, mwifiex_dbg(adapter, ERROR,
"err: InterpretIE: in processing\t" "err: InterpretIE: in processing\t"
"IE, bytes left < IE length\n"); "IE, bytes left < IE length\n");
return -1; return -EINVAL;
} }
switch (element_id) { switch (element_id) {
case WLAN_EID_SSID: case WLAN_EID_SSID:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment