logo       
Google Custom Search
    AddThis Social Bookmark Button

revision 2350 committed: msg#00045

Subject: revision 2350 committed
Project     : madwifi
Revision    : 2350
Author      : mentor (Matthew W. S. Bell)
Date        : 2007-05-18 11:42:17 +0200 (Fri, 18 May 2007)

Log Message :
Use helpful macro to check beacon interval value

Affected Files:
* trunk/net80211/ieee80211_input.c                    updated             


Modified: trunk/net80211/ieee80211_input.c
===================================================================
--- trunk/net80211/ieee80211_input.c    2007-05-18 09:38:12 UTC (rev 2349)
+++ trunk/net80211/ieee80211_input.c    2007-05-18 09:42:17 UTC (rev 2350)
@@ -2773,8 +2773,7 @@
                 * beacon interval outside of an arbitrary range in
                 * order to protect against attack.
                 */
-               if (!(IEEE80211_BINTVAL_MIN <= scan.bintval && 
-                    scan.bintval <= IEEE80211_BINTVAL_MAX)) {
+               if (!IEEE80211_BINTVAL_VALID(scan.bintval)) {
                        IEEE80211_DISCARD(vap, IEEE80211_MSG_SCAN,
                                wh, "beacon", "invalid beacon interval (%u)", 
                                scan.bintval);

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>