]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DFS: Add extra debugging messages
authorBen Greear <greearb@candelatech.com>
Thu, 6 Mar 2014 00:19:53 +0000 (16:19 -0800)
committerJouni Malinen <j@w1.fi>
Tue, 11 Mar 2014 17:26:48 +0000 (19:26 +0200)
This might help someone realize why their hostapd config isn't working
properly.

Signed-off-by: Ben Greear <greearb@candelatech.com>
src/ap/dfs.c

index e00da51b064d050479510b5777fab3664e682fb9..0f262ceb243cbda139a701dd470e40fbc07ac156 100644 (file)
@@ -288,8 +288,19 @@ static int dfs_get_start_chan_idx(struct hostapd_iface *iface)
                }
        }
 
-       if (res == -1)
-               wpa_printf(MSG_DEBUG, "DFS chan_idx seems wrong: -1");
+       if (res == -1) {
+               wpa_printf(MSG_DEBUG,
+                          "DFS chan_idx seems wrong; num-ch: %d ch-no: %d conf-ch-no: %d 11n: %d sec-ch: %d vht-oper-width: %d",
+                          mode->num_channels, channel_no, iface->conf->channel,
+                          iface->conf->ieee80211n,
+                          iface->conf->secondary_channel,
+                          iface->conf->vht_oper_chwidth);
+
+               for (i = 0; i < mode->num_channels; i++) {
+                       wpa_printf(MSG_DEBUG, "Available channel: %d",
+                                  mode->channels[i].chan);
+               }
+       }
 
        return res;
 }