mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
Fix or supress various sparse warnings
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
e91877fb62
commit
30eddf3529
@ -21,6 +21,7 @@
|
||||
#include "common/wpa_ctrl.h"
|
||||
#include "hostapd.h"
|
||||
#include "sta_info.h"
|
||||
#include "taxonomy.h"
|
||||
|
||||
|
||||
/* Copy a string with no funny schtuff allowed; only alphanumerics. */
|
||||
|
@ -106,7 +106,7 @@ static inline void fst_iface_update_mb_ie(struct fst_iface *i,
|
||||
const u8 *addr,
|
||||
const u8 *buf, size_t size)
|
||||
{
|
||||
return i->iface_obj.update_mb_ie(i->iface_obj.ctx, addr, buf, size);
|
||||
i->iface_obj.update_mb_ie(i->iface_obj.ctx, addr, buf, size);
|
||||
}
|
||||
|
||||
static inline const u8 * fst_iface_get_peer_first(struct fst_iface *i,
|
||||
|
@ -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);
|
||||
|
@ -633,8 +633,8 @@ static int * wpas_beacon_request_freqs(struct wpa_supplicant *wpa_s,
|
||||
}
|
||||
|
||||
|
||||
int wpas_get_op_chan_phy(int freq, const u8 *ies, size_t ies_len,
|
||||
u8 *op_class, u8 *chan, u8 *phy_type)
|
||||
static int wpas_get_op_chan_phy(int freq, const u8 *ies, size_t ies_len,
|
||||
u8 *op_class, u8 *chan, u8 *phy_type)
|
||||
{
|
||||
const u8 *ie;
|
||||
int sec_chan = 0, vht = 0;
|
||||
|
@ -3769,8 +3769,11 @@ static int wpa_set_htcap_mcs(struct wpa_supplicant *wpa_s,
|
||||
wpa_msg(wpa_s, MSG_DEBUG, "set_htcap, ht_mcs -:%s:-", ht_mcs);
|
||||
|
||||
for (i = 0; i < IEEE80211_HT_MCS_MASK_LEN; i++) {
|
||||
long v;
|
||||
|
||||
errno = 0;
|
||||
long v = strtol(tmp, &end, 16);
|
||||
v = strtol(tmp, &end, 16);
|
||||
|
||||
if (errno == 0) {
|
||||
wpa_msg(wpa_s, MSG_DEBUG,
|
||||
"htcap value[%i]: %ld end: %p tmp: %p",
|
||||
|
Loading…
Reference in New Issue
Block a user