aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wnm_sta.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-11-22 11:43:17 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-22 15:03:15 (GMT)
commit4c381f0d1cc0b0f9b19f39d93050637c5a482d2f (patch)
tree7624ddbc6ee4c91ca66aa8a67b2ed0ebd8bdffcd /wpa_supplicant/wnm_sta.c
parent8040dc53c2671812a7adfacfb469841c04814ea1 (diff)
downloadhostap-4c381f0d1cc0b0f9b19f39d93050637c5a482d2f.zip
hostap-4c381f0d1cc0b0f9b19f39d93050637c5a482d2f.tar.gz
hostap-4c381f0d1cc0b0f9b19f39d93050637c5a482d2f.tar.bz2
WNM: Convert BSSID Info into a u32
This is more convenient to use than u8 array. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wnm_sta.c')
-rw-r--r--wpa_supplicant/wnm_sta.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
index 48f1be4..732179f 100644
--- a/wpa_supplicant/wnm_sta.c
+++ b/wpa_supplicant/wnm_sta.c
@@ -448,7 +448,7 @@ static void wnm_parse_neighbor_report(struct wpa_supplicant *wpa_s,
}
os_memcpy(rep->bssid, pos, ETH_ALEN);
- os_memcpy(rep->bssid_information, pos + ETH_ALEN, 4);
+ rep->bssid_info = WPA_GET_LE32(pos + ETH_ALEN);
rep->regulatory_class = *(pos + 10);
rep->channel_number = *(pos + 11);
rep->phy_type = *(pos + 12);
@@ -628,8 +628,9 @@ static void wnm_dump_cand_list(struct wpa_supplicant *wpa_s)
nei = &wpa_s->wnm_neighbor_report_elements[i];
wpa_printf(MSG_DEBUG, "%u: " MACSTR
- " op_class=%u chan=%u phy=%u pref=%d",
- i, MAC2STR(nei->bssid), nei->regulatory_class,
+ " info=0x%x op_class=%u chan=%u phy=%u pref=%d",
+ i, MAC2STR(nei->bssid), nei->bssid_info,
+ nei->regulatory_class,
nei->channel_number, nei->phy_type,
nei->bss_tran_can ? nei->bss_tran_can->preference :
-1);