wifi: cfg80211: make cfg80211_auth_request::key_idx signed
authorJohannes Berg <johannes.berg@intel.com>
Wed, 22 Jun 2022 08:17:23 +0000 (10:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:14 +0000 (11:43 +0200)
commit23cc6d8c37cdbe3b2b74a922f3311ecb2a5aea6c
tree9e6df1c6d5f6340dc5ec659baa21237ed494801f
parentc0d6701261dbfa29902ca64c7b57b1cc5f0c2533
wifi: cfg80211: make cfg80211_auth_request::key_idx signed

We might assign -1 to it in some cases when key is NULL,
which means the key_idx isn't used but can lead to a
warning from static checkers such as smatch.

Make the struct member signed simply to avoid that, we
only need a range of -1..3 anyway.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h