From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.01.org
Subject: [PATCH 1/7] netdev: prepare for MAC randomization rework
Date: Tue, 17 Mar 2020 10:38:49 -0700 [thread overview]
Message-ID: <20200317173855.19680-1-prestwoj@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]
Add a new netdev error result for changing the MAC. This will allow
watchers to know if the reason for a failed connection was due to
changing the MAC. In these cases a descriptive log message could be
printed.
Adds a new enum netdev_set_mac_type. This type will be passed to
netdev_create_from_genl rather than the address directly.
---
src/netdev.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/netdev.h b/src/netdev.h
index 58b63fbd..d468dc46 100644
--- a/src/netdev.h
+++ b/src/netdev.h
@@ -35,6 +35,7 @@ enum netdev_result {
NETDEV_RESULT_HANDSHAKE_FAILED,
NETDEV_RESULT_KEY_SETTING_FAILED,
NETDEV_RESULT_ABORTED,
+ NETDEV_RESULT_SET_MAC_FAILED,
};
enum netdev_event {
@@ -65,6 +66,12 @@ enum netdev_iftype {
NETDEV_IFTYPE_P2P_GO,
};
+enum netdev_set_mac_type {
+ NETDEV_SET_MAC_DISABLED,
+ NETDEV_SET_MAC_ONCE,
+ NETDEV_SET_MAC_NETWORK,
+};
+
typedef void (*netdev_command_cb_t)(struct netdev *netdev, int result,
void *user_data);
/*
--
2.21.1
next reply other threads:[~2020-03-17 17:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-17 17:38 James Prestwood [this message]
2020-03-17 17:38 ` [PATCH 2/7] netdev: manager: pass mac type to netdev_create_from_genl James Prestwood
2020-03-17 17:38 ` [PATCH 3/7] wiphy: add _generate_address_from_ssid James Prestwood
2020-03-17 17:38 ` [PATCH 4/7] netdev: support per-network MAC addresses James Prestwood
2020-03-17 17:38 ` [PATCH 5/7] manager: add 'network' option to AddressRandomization James Prestwood
2020-03-17 17:38 ` [PATCH 6/7] station: print error message if setting MAC failed James Prestwood
2020-03-17 17:38 ` [PATCH 7/7] doc: document AddressRandomization=network option James Prestwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200317173855.19680-1-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox