|
@@ -3492,6 +3492,7 @@ static int iwl4965_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *sk
|
|
|
{
|
|
|
struct iwl_priv *priv = hw->priv;
|
|
|
unsigned long flags;
|
|
|
+ __le64 timestamp;
|
|
|
|
|
|
mutex_lock(&priv->mutex);
|
|
|
IWL_DEBUG_MAC80211("enter\n");
|
|
@@ -3516,6 +3517,8 @@ static int iwl4965_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *sk
|
|
|
priv->ibss_beacon = skb;
|
|
|
|
|
|
priv->assoc_id = 0;
|
|
|
+ timestamp = ((struct ieee80211_mgmt *)skb->data)->u.beacon.timestamp;
|
|
|
+ priv->timestamp = le64_to_cpu(timestamp) + (priv->beacon_int * 1000);
|
|
|
|
|
|
IWL_DEBUG_MAC80211("leave\n");
|
|
|
spin_unlock_irqrestore(&priv->lock, flags);
|