Fix or supress various sparse warnings

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2017-01-26 13:09:25 +01:00 committed by Jouni Malinen
parent e91877fb62
commit 30eddf3529
5 changed files with 10 additions and 5 deletions

View file

@ -1201,9 +1201,10 @@ skip_ies:
#ifdef CONFIG_TDLS_TESTING
if (tdls_testing & TDLS_TESTING_DIFF_BSSID) {
struct wpa_tdls_lnkid *l = (struct wpa_tdls_lnkid *) pos;
wpa_printf(MSG_DEBUG, "TDLS: Testing - use incorrect BSSID in "
"Link Identifier");
struct wpa_tdls_lnkid *l = (struct wpa_tdls_lnkid *) pos;
wpa_tdls_linkid(sm, peer, l);
l->bssid[5] ^= 0x01;
pos += sizeof(*l);