|
@@ -322,7 +322,7 @@ int iwl_send_rxon_timing(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
|
|
|
u16 beacon_int;
|
|
|
struct ieee80211_vif *vif = ctx->vif;
|
|
|
|
|
|
- conf = ieee80211_get_hw_conf(priv->hw);
|
|
|
+ conf = &priv->hw->conf;
|
|
|
|
|
|
lockdep_assert_held(&priv->shrd->mutex);
|
|
|
|
|
@@ -1829,6 +1829,28 @@ void iwl_setup_watchdog(struct iwl_priv *priv)
|
|
|
del_timer(&priv->watchdog);
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * iwl_beacon_time_mask_low - mask of lower 32 bit of beacon time
|
|
|
+ * @priv -- pointer to iwl_priv data structure
|
|
|
+ * @tsf_bits -- number of bits need to shift for masking)
|
|
|
+ */
|
|
|
+static inline u32 iwl_beacon_time_mask_low(struct iwl_priv *priv,
|
|
|
+ u16 tsf_bits)
|
|
|
+{
|
|
|
+ return (1 << tsf_bits) - 1;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * iwl_beacon_time_mask_high - mask of higher 32 bit of beacon time
|
|
|
+ * @priv -- pointer to iwl_priv data structure
|
|
|
+ * @tsf_bits -- number of bits need to shift for masking)
|
|
|
+ */
|
|
|
+static inline u32 iwl_beacon_time_mask_high(struct iwl_priv *priv,
|
|
|
+ u16 tsf_bits)
|
|
|
+{
|
|
|
+ return ((1 << (32 - tsf_bits)) - 1) << tsf_bits;
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
* extended beacon time format
|
|
|
* time in usec will be changed into a 32-bit value in extended:internal format
|