]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FST: Print reason for ignoring FST Action frame in debug log
authorJouni Malinen <j@w1.fi>
Sat, 25 Jul 2015 20:20:33 +0000 (23:20 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 25 Jul 2015 20:20:33 +0000 (23:20 +0300)
This makes it easier to understand why some frames are not processed.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/ieee802_11.c
src/fst/fst.c

index 2785c61f6f7af4a1c7470e8dc20f9eba47917aac..e224d1bdfadf2c833015f68a3c3b92e7890a9877 100644 (file)
@@ -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:
index 568fb86311fce7672f6781bd146f5132628d699f..347c6fa584a766aabc6716e2ec4c4d7a4757cb7e 100644 (file)
@@ -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));
 }