|
@@ -639,7 +639,6 @@ static void iwl_activate_qos(struct iwl_priv *priv, u8 force)
|
|
}
|
|
}
|
|
|
|
|
|
#define MAX_UCODE_BEACON_INTERVAL 4096
|
|
#define MAX_UCODE_BEACON_INTERVAL 4096
|
|
-#define INTEL_CONN_LISTEN_INTERVAL __constant_cpu_to_le16(0xA)
|
|
|
|
|
|
|
|
static __le16 iwl4965_adjust_beacon_interval(u16 beacon_val)
|
|
static __le16 iwl4965_adjust_beacon_interval(u16 beacon_val)
|
|
{
|
|
{
|
|
@@ -669,7 +668,7 @@ static void iwl4965_setup_rxon_timing(struct iwl_priv *priv)
|
|
priv->rxon_timing.timestamp.dw[0] =
|
|
priv->rxon_timing.timestamp.dw[0] =
|
|
cpu_to_le32(priv->timestamp & 0xFFFFFFFF);
|
|
cpu_to_le32(priv->timestamp & 0xFFFFFFFF);
|
|
|
|
|
|
- priv->rxon_timing.listen_interval = INTEL_CONN_LISTEN_INTERVAL;
|
|
|
|
|
|
+ priv->rxon_timing.listen_interval = cpu_to_le16(conf->listen_interval);
|
|
|
|
|
|
tsf = priv->timestamp;
|
|
tsf = priv->timestamp;
|
|
|
|
|
|
@@ -2835,6 +2834,7 @@ static int iwl4965_mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *co
|
|
|
|
|
|
spin_lock_irqsave(&priv->lock, flags);
|
|
spin_lock_irqsave(&priv->lock, flags);
|
|
|
|
|
|
|
|
+
|
|
/* if we are switching from ht to 2.4 clear flags
|
|
/* if we are switching from ht to 2.4 clear flags
|
|
* from any ht related info since 2.4 does not
|
|
* from any ht related info since 2.4 does not
|
|
* support ht */
|
|
* support ht */
|
|
@@ -3164,6 +3164,7 @@ static void iwl4965_bss_info_changed(struct ieee80211_hw *hw,
|
|
if (bss_conf->assoc) {
|
|
if (bss_conf->assoc) {
|
|
priv->assoc_id = bss_conf->aid;
|
|
priv->assoc_id = bss_conf->aid;
|
|
priv->beacon_int = bss_conf->beacon_int;
|
|
priv->beacon_int = bss_conf->beacon_int;
|
|
|
|
+ priv->power_data.dtim_period = bss_conf->dtim_period;
|
|
priv->timestamp = bss_conf->timestamp;
|
|
priv->timestamp = bss_conf->timestamp;
|
|
priv->assoc_capability = bss_conf->assoc_capability;
|
|
priv->assoc_capability = bss_conf->assoc_capability;
|
|
priv->next_scan_jiffies = jiffies +
|
|
priv->next_scan_jiffies = jiffies +
|