From 822ad91faa6e0704a306158d22e5182274ff6b11 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 7 Aug 2023 12:12:07 -0700 Subject: [PATCH] scan: remove unneeded debug prints Removed several debug prints which are very verbose and provide little to no important information. The get_scan_{done,callback} prints are pointless since all the parsed scan results are printed by station anyways. Printing the BSS load is also not that useful since it doesn't include the BSSID. If anything the BSS load should be included when station prints out each individual BSS (along with frequency, rank, etc). The advertisement protocol print was just just left in there by accident when debugging, and also provides basically no useful information. --- src/scan.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/scan.c b/src/scan.c index 48e53e9a..5a972efb 100644 --- a/src/scan.c +++ b/src/scan.c @@ -1230,8 +1230,6 @@ static bool scan_parse_advertisement_protocol(struct scan_bss *bss, { const uint8_t *ptr = data; - l_debug(""); - while (len) { /* * TODO: Store query info for GAS response length verification @@ -1304,8 +1302,6 @@ static bool scan_parse_bss_information_elements(struct scan_bss *bss, NULL) < 0) l_warn("Unable to parse BSS Load IE for " MAC, MAC_STR(bss->addr)); - else - l_debug("Load: %u/255", bss->utilization); break; case IE_TYPE_VENDOR_SPECIFIC: @@ -1795,8 +1791,6 @@ static void get_scan_callback(struct l_genl_msg *msg, void *user_data) uint64_t wdev_id; uint32_t seen_ms_ago = 0; - l_debug("get_scan_callback"); - if (nl80211_parse_attrs(msg, NL80211_ATTR_WDEV, &wdev_id, NL80211_ATTR_UNSPEC) < 0) return; @@ -1875,8 +1869,6 @@ static void get_scan_done(void *user) struct scan_results *results = user; struct scan_context *sc = results->sc; - l_debug("get_scan_done"); - sc->get_scan_cmd_id = 0; if (!results->sr || !results->sr->canceled)