]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Debug print driver capabilities
authorJouni Malinen <jouni@codeaurora.org>
Fri, 13 Mar 2020 18:03:14 +0000 (20:03 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 13 Mar 2020 18:03:14 +0000 (20:03 +0200)
This can be helpful in understanding driver behavior.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/drivers/driver_nl80211_capa.c

index ea1ab8a2f921980bf87f3d9ec88b060598f1b1f3..5a51b429d4a01b59a2f686106027f64969143372 100644 (file)
@@ -1311,6 +1311,12 @@ int wpa_driver_nl80211_capa(struct wpa_driver_nl80211_data *drv)
                drv->capa.flags &= ~WPA_DRIVER_FLAGS_OFFCHANNEL_SIMULTANEOUS;
 #endif /* CONFIG_DRIVER_NL80211_QCA */
 
+       wpa_printf(MSG_DEBUG,
+                  "nl80211: key_mgmt=0x%x enc=0x%x auth=0x%x flags=0x%llx rrm_flags=0x%x probe_resp_offloads=0x%x max_stations=%u max_remain_on_chan=%u max_scan_ssids=%d",
+                  drv->capa.key_mgmt, drv->capa.enc, drv->capa.auth,
+                  (unsigned long long) drv->capa.flags, drv->capa.rrm_flags,
+                  drv->capa.probe_resp_offloads, drv->capa.max_stations,
+                  drv->capa.max_remain_on_chan, drv->capa.max_scan_ssids);
        return 0;
 }