aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant_i.h
diff options
context:
space:
mode:
authorKanchanapally, Vidyullatha <vkanchan@qti.qualcomm.com>2015-09-25 11:36:27 (GMT)
committerJouni Malinen <j@w1.fi>2015-09-30 22:41:46 (GMT)
commite903d32d41213dec738a32538baee34f5548d03b (patch)
treea46a1085002b828c3a30dbe9c68ff587eaa4f3d3 /wpa_supplicant/wpa_supplicant_i.h
parent8e5097456af34c43beee03e63ef7ab10aabd9680 (diff)
downloadhostap-e903d32d41213dec738a32538baee34f5548d03b.zip
hostap-e903d32d41213dec738a32538baee34f5548d03b.tar.gz
hostap-e903d32d41213dec738a32538baee34f5548d03b.tar.bz2
Parallelize distinct radio work operations
This commit contains the necessary changes to parallelize distinct radio work operations which are different in type and the band used, only when the underlying driver is capable of supporting such simultaneous offchannel operations. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant_i.h')
-rw-r--r--wpa_supplicant/wpa_supplicant_i.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h
index 58df48c..52402cd 100644
--- a/wpa_supplicant/wpa_supplicant_i.h
+++ b/wpa_supplicant/wpa_supplicant_i.h
@@ -300,10 +300,19 @@ struct wpa_radio {
char name[16]; /* from driver_ops get_radio_name() or empty if not
* available */
unsigned int external_scan_running:1;
+ unsigned int num_active_works;
struct dl_list ifaces; /* struct wpa_supplicant::radio_list entries */
struct dl_list work; /* struct wpa_radio_work::list entries */
};
+#define MAX_ACTIVE_WORKS 2
+
+enum wpa_radio_work_band {
+ BAND_2_4_GHZ = BIT(0),
+ BAND_5_GHZ = BIT(1),
+ BAND_60_GHZ = BIT(2),
+};
+
/**
* struct wpa_radio_work - Radio work item
*/
@@ -316,6 +325,7 @@ struct wpa_radio_work {
void *ctx;
unsigned int started:1;
struct os_reltime time;
+ unsigned int bands;
};
int radio_add_work(struct wpa_supplicant *wpa_s, unsigned int freq,