Similarly to r3315
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 30 Mar 2008 00:08:36 +0000 (00:08 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 30 Mar 2008 00:08:36 +0000 (00:08 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3412 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211.c

index 04404a6c91ec8d2595cc7a8d2e200bd2ce5165c2..4492a3b343c0a480271e1412b0e056da55eb5242 100644 (file)
@@ -329,9 +329,9 @@ ieee80211_ifattach(struct ieee80211com *ic)
        /* We store the beacon miss threshold in integral number of beacons,
         * to keep the calculations on the critical path simple. */
        if (ic->ic_bmissthreshold == 0) {
-               ic->ic_bmissthreshold = howmany(roundup(
-                       IEEE80211_MS_TO_TU(IEEE80211_BMISSTHRESH_DEFAULT_MS), 
-                       ic->ic_lintval), ic->ic_lintval);
+               ic->ic_bmissthreshold = howmany(IEEE80211_MS_TO_TU(
+                                       IEEE80211_BMISSTHRESH_DEFAULT_MS),
+                               ic->ic_lintval);
        }
                
        IEEE80211_LOCK_INIT(ic, "ieee80211com");