staging: ks7010: Use constants from ieee80211_eid instead of literal ints.
authorQuytelda Kahja <quytelda@tamalin.org>
Thu, 1 Mar 2018 05:19:07 +0000 (21:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:43 +0000 (16:17 +0200)
commit281bb7920cc0cd3e3bbe06b48a3d42b2dbeaa3cc
tree661f0fd63fc614a3cf986f4b0f333f6efca3c646
parentd5ae597ed13da51d203adea4deb524728c45da71
staging: ks7010: Use constants from ieee80211_eid instead of literal ints.

[ Upstream commit dc13498ab47fdfae3cda4df712beb2e4244b3fe0 ]

The case statement in get_ap_information() should not use literal integers
to parse information element IDs when these values are provided by name
in 'enum ieee80211_eid' in the header 'linux/ieee80211.h'.

Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
Reviewed-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c
drivers/staging/ks7010/ks_hostif.h