[PATCH v2 5/6] nl80211: Add some global variables.

greearb at candelatech.com greearb
Thu Oct 20 13:21:23 PDT 2011


From: Ben Greear <greearb at candelatech.com>

Will use them in the next patch.

Signed-off-by: Ben Greear <greearb at candelatech.com>
---
:100644 100644 f6556a2... 971db78... M	src/drivers/driver_nl80211.c
 src/drivers/driver_nl80211.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index f6556a2..971db78 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -122,8 +122,21 @@ struct nl80211_global {
 	enum hostap_struct_id struct_id;
 	struct dl_list interfaces;
 	int if_add_ifindex;
+	struct netlink_data *netlink;
+	struct nl_handle *nl_handle;
+	struct nl_handle *nl_handle_event;
+	struct nl_handle *nl_handle_preq;
+	int nl_handle_preq_refcnt;
+	struct nl_cache *nl_cache;
+	struct nl_cache *nl_cache_event;
+	struct nl_cache *nl_cache_preq;
+	struct nl_cb *nl_cb;
+	struct genl_family *nl80211;
 };
 
+static struct nl80211_global* global_ptr = NULL;
+static void * nl80211_global_init(void);
+
 struct i802_bss {
 	enum hostap_struct_id struct_id;
 	struct wpa_driver_nl80211_data *drv;
-- 
1.7.3.4




More information about the Hostap mailing list