avoid parsing InformationBuffer unless status is "success"
authorBjørn Mork <bjorn@mork.no>
Wed, 8 Apr 2015 13:31:20 +0000 (15:31 +0200)
committerJohn Crispin <blogic@openwrt.org>
Fri, 3 Apr 2015 08:33:14 +0000 (10:33 +0200)
commit6cf812a3f769544cbc295239110f22f602abec28
tree53a9aea816cca2ec8eaf00947d4875e5972e7018
parentc147486c7958d8f39cf279acf328359f55118c36
avoid parsing InformationBuffer unless status is "success"

The MBIM specification requires that the InformationBuffer
is empty unless the status field is MBIM_STATUS_SUCCESS,
except for 4 explicit combinations of status code and
command id.

Avoid calling the reply handler if the status code is
non-zero and the information buffer is empty.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
mbim-dev.c