projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79d0732
)
iwlwifi: beacon internal time unit
author
Wey-Yi Guy
<
[email protected]
>
Wed, 5 May 2010 18:31:38 +0000
(11:31 -0700)
committer
Reinette Chatre
<
[email protected]
>
Sun, 6 Jun 2010 06:16:30 +0000
(23:16 -0700)
use TIME_UNIT define for beacon internal calculation
Signed-off-by: Wey-Yi Guy <
[email protected]
>
Signed-off-by: Reinette Chatre <
[email protected]
>
drivers/net/wireless/iwlwifi/iwl-core.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/iwl-core.c
b/drivers/net/wireless/iwlwifi/iwl-core.c
index 718ffa3d89c158d1dc2a4faec034c38652f50738..56bcf0ebec83e1c107fe8721c36ae002b7d00d10 100644
(file)
--- a/
drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/
drivers/net/wireless/iwlwifi/iwl-core.c
@@
-506,11
+506,11
@@
void iwl_setup_rxon_timing(struct iwl_priv *priv, struct ieee80211_vif *vif)
}
beacon_int = iwl_adjust_beacon_interval(beacon_int,
- priv->hw_params.max_beacon_itrvl *
1024
);
+ priv->hw_params.max_beacon_itrvl *
TIME_UNIT
);
priv->rxon_timing.beacon_interval = cpu_to_le16(beacon_int);
tsf = priv->timestamp; /* tsf is modifed by do_div: copy it */
- interval_tm = beacon_int *
1024
;
+ interval_tm = beacon_int *
TIME_UNIT
;
rem = do_div(tsf, interval_tm);
priv->rxon_timing.beacon_init_val = cpu_to_le32(interval_tm - rem);