From: Jouni Malinen Date: Thu, 5 Mar 2009 09:24:48 +0000 (+0200) Subject: nl80211: Add verbose result debugging for NL80211_CMD_NEW_STATION X-Git-Tag: hostap_0_7_0~474 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f72750896c714cb8c06d82f9038f23295b8a30d5;p=thirdparty%2Fhostap.git nl80211: Add verbose result debugging for NL80211_CMD_NEW_STATION --- diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c index d457f7196..ff59ac87f 100644 --- a/hostapd/driver_nl80211.c +++ b/hostapd/driver_nl80211.c @@ -854,6 +854,9 @@ static int i802_sta_add2(const char *ifname, void *priv, #endif /* CONFIG_IEEE80211N */ ret = send_and_recv_msgs(drv, msg, NULL, NULL); + if (ret) + wpa_printf(MSG_DEBUG, "nl80211: NL80211_CMD_NEW_STATION " + "result: %d (%s)", ret, strerror(-ret)); if (ret == -EEXIST) ret = 0; nla_put_failure: