aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-10 09:55:01 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-11 12:32:52 -0500
commit79d3eef89190ee0a7ee585e3949873241bc382e3 (patch)
tree69da0c1b02fd45dea359624c5d876412d22dd40d /drivers/net/wireless/iwlwifi/iwl-dev.h
parent868a5f719d730866564d9bd73a8f4a8d89bdc71a (diff)
iwlagn: add P2P NoA to probe responses
Whether to use NoA or not is entire controlled by the uCode right now, and it also adds the attribute to beacons. We do need to add it to probe responses in the driver though. Keep track of the NoA notification from the uCode and add the data to probe responses when such are transmitted. Use RCU to manage the lifetime. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 6c00a447963d..ef8620b10bbc 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -824,6 +824,12 @@ struct iwl_testmode_trace {
824}; 824};
825#endif 825#endif
826 826
827struct iwl_wipan_noa_data {
828 struct rcu_head rcu_head;
829 u32 length;
830 u8 data[];
831};
832
827struct iwl_priv { 833struct iwl_priv {
828 834
829 /*data shared among all the driver's layers */ 835 /*data shared among all the driver's layers */
@@ -883,6 +889,8 @@ struct iwl_priv {
883 /* init calibration results */ 889 /* init calibration results */
884 struct iwl_calib_result calib_results[IWL_CALIB_MAX]; 890 struct iwl_calib_result calib_results[IWL_CALIB_MAX];
885 891
892 struct iwl_wipan_noa_data __rcu *noa_data;
893
886 /* Scan related variables */ 894 /* Scan related variables */
887 unsigned long scan_start; 895 unsigned long scan_start;
888 unsigned long scan_start_tsf; 896 unsigned long scan_start_tsf;