From d365359298152774c8bcc96fd57a9c33ef7b6843 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 25 Jul 2015 23:20:33 +0300 Subject: FST: Print reason for ignoring FST Action frame in debug log This makes it easier to understand why some frames are not processed. Change-Id: I143eebc04e4ac8c4b107026c92ab3be051ee49a8 Signed-off-by: Jouni Malinen Git-commit: 94edea89fd1c1deb176eaea9f29cbc4e3ee3ddda Git-repo: git://w1.fi/srv/git/hostap.git CRs-Fixed: 891455 --- src/ap/ieee802_11.c | 3 +++ src/fst/fst.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 2785c61f..e224d1bd 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -2122,6 +2122,9 @@ static int handle_action(struct hostapd_data *hapd, case WLAN_ACTION_FST: if (hapd->iface->fst) fst_rx_action(hapd->iface->fst, mgmt, len); + else + wpa_printf(MSG_DEBUG, + "FST: Ignore FST Action frame - no FST attached"); return 1; #endif /* CONFIG_FST */ case WLAN_ACTION_PUBLIC: diff --git a/src/fst/fst.c b/src/fst/fst.c index 568fb863..347c6fa5 100644 --- a/src/fst/fst.c +++ b/src/fst/fst.c @@ -183,6 +183,10 @@ void fst_rx_action(struct fst_iface *iface, const struct ieee80211_mgmt *mgmt, { if (fst_iface_is_connected(iface, mgmt->sa)) fst_session_on_action_rx(iface, mgmt, len); + else + wpa_printf(MSG_DEBUG, + "FST: Ignore FST Action frame - no FST connection with " + MACSTR, MAC2STR(mgmt->sa)); } -- cgit v1.2.3