staging: wilc1000: Avoid overriding rates_no while parsing ies element.
authorAdham Abozaeid <adham.abozaeid@microchip.com>
Thu, 24 May 2018 00:02:14 +0000 (17:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:45:47 +0000 (18:45 +0200)
commit979eb0c96be97ddefc46cf8659741cf3ffc54fd2
tree987ff6e5127e0bd32d6793f84f38895201465420
parent173ffd0993fd3e6ec7e0e24424350a807605e6d0
staging: wilc1000: Avoid overriding rates_no while parsing ies element.

Commit d4b4aaba515a ("staging: wilc1000: fix line over 80 characters in
host_int_parse_join_bss_param()") introduced a bug by not keeping the
rates_no value while parsing ies elements.
It also increments auth_total_cnt as a pointer instead of its reference.

This commit fixes the bug by passing reference to rates_no to
host_int_parse_join_bss_param() and by incrementing reference of
auth_total_cnt

Fixes: d4b4aaba515a (staging: wilc1000: fix line over 80 characters in host_int_parse_join_bss_param())
Signed-off-by: Adham Abozaeid <adham.abozaeid@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c