]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/wpa_supplicant_i.h
Add shared per-radio structure for wpa_supplicant
[thirdparty/hostap.git] / wpa_supplicant / wpa_supplicant_i.h
index fb635e45bfd948eaff0226ef049a85c1dc8b5d71..8cc813c8bfd6e9c1e8dbd340c7fb6ad57468da9a 100644 (file)
@@ -270,6 +270,19 @@ struct wpa_global {
 };
 
 
+/**
+ * struct wpa_radio - Internal data for per-radio information
+ *
+ * This structure is used to share data about configured interfaces
+ * (struct wpa_supplicant) that share the same physical radio, e.g., to allow
+ * better coordination of offchannel operations.
+ */
+struct wpa_radio {
+       char name[16]; /* from driver_ops get_radio_name() or empty if not
+                       * available */
+       struct dl_list ifaces; /* struct wpa_supplicant::radio_list entries */
+};
+
 /**
  * offchannel_send_action_result - Result of offchannel send Action frame
  */
@@ -307,6 +320,8 @@ struct wpa_ssid_value {
  */
 struct wpa_supplicant {
        struct wpa_global *global;
+       struct wpa_radio *radio; /* shared radio context */
+       struct dl_list radio_list; /* list head: struct wpa_radio::ifaces */
        struct wpa_supplicant *parent;
        struct wpa_supplicant *next;
        struct l2_packet_data *l2;