From: mtaylor Date: Mon, 29 Oct 2007 22:33:03 +0000 (+0000) Subject: Our ABI for hostapd currently uses an old structure that only has one byte for the... X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=d2fd0a8446d01dc0c4f8e8d3a090505fe894e7fe;p=madwifi%2F.git Our ABI for hostapd currently uses an old structure that only has one byte for the key index. This means that the 'magic value' of -1 (255) for NONE is passed rather than the larger type we actually use internally. To make comparisons work properly, I'm putting the magic value back at (uint8_t)-1 again so that a key index of 'none' with a MAC address that is passed into madwifi is interpreted correctly and the keys for that station are properly removed, rather than errors returned. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2798 0192ed92-7a03-0410-a25b-9323aeb14dbd --- diff --git a/net80211/ieee80211_crypto.h b/net80211/ieee80211_crypto.h index 04a60ba..9a49dc0 100644 --- a/net80211/ieee80211_crypto.h +++ b/net80211/ieee80211_crypto.h @@ -106,7 +106,7 @@ struct ieee80211_key { #define IEEE80211_CIPHER_MAX (IEEE80211_CIPHER_NONE + 1) -#define IEEE80211_KEYIX_NONE ((ieee80211_keyix_t) -1) +#define IEEE80211_KEYIX_NONE ((ieee80211_keyix_t) (uint8_t)-1) #if defined(__KERNEL__) || defined(_KERNEL)