3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-02 09:28:53 +02:00

treewide: Use nl80211cmd_to_string

Using integer ids for event notifications received was hard to debug.
Use the nl80211cmd_to_string function to prettify these.
This commit is contained in:
Denis Kenzior 2019-07-15 14:04:43 -05:00
parent 7f0b169e71
commit f557c7e6cd
4 changed files with 9 additions and 4 deletions

View File

@ -33,6 +33,7 @@
#include "src/eap-private.h"
#include "src/ie.h"
#include "src/nl80211util.h"
#include "src/nl80211cmd.h"
#include "src/scan.h"
#include "src/netdev.h"
#include "src/iwd.h"
@ -644,7 +645,7 @@ static void anqp_mlme_notify(struct l_genl_msg *msg, void *user_data)
cmd = l_genl_msg_get_command(msg);
l_debug("MLME notification %u", cmd);
l_debug("MLME notification %s(%u)", nl80211cmd_to_string(cmd), cmd);
if (!l_genl_attr_init(&attr, msg))
return;

View File

@ -39,6 +39,7 @@
#include "src/wiphy.h"
#include "src/util.h"
#include "src/common.h"
#include "src/nl80211cmd.h"
static struct l_genl_family *nl80211 = NULL;
static char **whitelist_filter;
@ -601,7 +602,8 @@ static void manager_config_notify(struct l_genl_msg *msg, void *user_data)
cmd = l_genl_msg_get_command(msg);
l_debug("Notification of command %u", cmd);
l_debug("Notification of command %s(%u)",
nl80211cmd_to_string(cmd), cmd);
switch (cmd) {
case NL80211_CMD_NEW_WIPHY:

View File

@ -57,6 +57,7 @@
#include "src/watchlist.h"
#include "src/sae.h"
#include "src/nl80211util.h"
#include "src/nl80211cmd.h"
#include "src/owe.h"
#include "src/fils.h"
#include "src/auth-proto.h"
@ -3332,7 +3333,7 @@ static void netdev_mlme_notify(struct l_genl_msg *msg, void *user_data)
cmd = l_genl_msg_get_command(msg);
l_debug("MLME notification %u", cmd);
l_debug("MLME notification %s(%u)", nl80211cmd_to_string(cmd), cmd);
if (!l_genl_attr_init(&attr, msg))
return;

View File

@ -42,6 +42,7 @@
#include "src/common.h"
#include "src/network.h"
#include "src/knownnetworks.h"
#include "src/nl80211cmd.h"
#include "src/util.h"
#include "src/scan.h"
@ -1326,7 +1327,7 @@ static void scan_notify(struct l_genl_msg *msg, void *user_data)
cmd = l_genl_msg_get_command(msg);
l_debug("Scan notification %u", cmd);
l_debug("Scan notification %s(%u)", nl80211cmd_to_string(cmd), cmd);
if (!l_genl_attr_init(&attr, msg))
return;