diff options
| author | Sudha Daram <dsudha@qti.qualcomm.com> | 2013-12-18 12:02:44 +0530 |
|---|---|---|
| committer | Arne Coucheron <arco68@gmail.com> | 2014-09-09 22:18:20 +0000 |
| commit | 3cc49706dd4c4909a1ace4bae222696655663143 (patch) | |
| tree | 671ea43f7d143d5d2e601dd3be319cc483e0ae6d | |
| parent | 298f5b84159a2334bb31fd1af9a6d887346c130d (diff) | |
| download | android_external_wpa_supplicant_8-3cc49706dd4c4909a1ace4bae222696655663143.tar.gz android_external_wpa_supplicant_8-3cc49706dd4c4909a1ace4bae222696655663143.tar.bz2 android_external_wpa_supplicant_8-3cc49706dd4c4909a1ace4bae222696655663143.zip | |
WNM: Add debug logs to get the RSSI from the scan results
This commit adds few more debug prints to log the RSSI information from
the scanned BSSIDs and the current connected BSSID when comparing
neighbor results during WNM Transition Management Request processing.
CRs-Fixed: 684325
Change-Id: Id67bd7d898540d029ea7c67f992834dde140358f
Git-commit: 3c1060ff8fec3d5f8b14ccfd9b37ed6b682434e6
Git-repo : git://w1.fi/srv/git/hostap.git
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
| -rw-r--r-- | wpa_supplicant/wnm_sta.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c index 95e2dfff..8875d63c 100644 --- a/wpa_supplicant/wnm_sta.c +++ b/wpa_supplicant/wnm_sta.c @@ -489,6 +489,10 @@ static int compare_scan_neighbor_results(struct wpa_supplicant *wpa_s, if (scan_res == NULL || num_neigh_rep == 0) return 0; + wpa_printf(MSG_DEBUG, "WNM: Current BSS " MACSTR " RSSI %d", + MAC2STR(wpa_s->bssid), + wpa_s->current_bss ? wpa_s->current_bss->level : 0); + for (i = 0; i < num_neigh_rep; i++) { for (j = 0; j < scan_res->num; j++) { /* Check for a better RSSI AP */ @@ -499,8 +503,16 @@ static int compare_scan_neighbor_results(struct wpa_supplicant *wpa_s, /* Got a BSSID with better RSSI value */ os_memcpy(bssid_to_connect, neigh_rep[i].bssid, ETH_ALEN); + wpa_printf(MSG_DEBUG, "Found a BSS " MACSTR + " with better scan RSSI %d", + MAC2STR(scan_res->res[j]->bssid), + scan_res->res[j]->level); return 1; } + wpa_printf(MSG_DEBUG, "scan_res[%d] " MACSTR + " RSSI %d", j, + MAC2STR(scan_res->res[j]->bssid), + scan_res->res[j]->level); } } |
