logo       
Google Custom Search
    AddThis Social Bookmark Button

revision 2295 committed: msg#00044

Subject: revision 2295 committed
Project     : madwifi
Revision    : 2295
Author      : proski (Pavel Roskin)
Date        : 2007-04-26 06:33:27 +0200 (Thu, 26 Apr 2007)

Log Message :
Fix another warning caused by comparing unsigned integer and 0.

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


Modified: trunk/net80211/ieee80211_wireless.c
===================================================================
--- trunk/net80211/ieee80211_wireless.c 2007-04-26 04:14:16 UTC (rev 2294)
+++ trunk/net80211/ieee80211_wireless.c 2007-04-26 04:33:27 UTC (rev 2295)
@@ -2211,10 +2211,15 @@
                retv = ENETRESET;               /* XXX? */
                break;
        case IEEE80211_PARAM_ROAMING:
-               if (!(IEEE80211_ROAMING_DEVICE <= value &&
-                   value <= IEEE80211_ROAMING_MANUAL))
+               switch (value) {
+               case IEEE80211_ROAMING_DEVICE:
+               case IEEE80211_ROAMING_AUTO:
+               case IEEE80211_ROAMING_MANUAL:
+                       ic->ic_roaming = value;
+                       break;
+               default:
                        return -EINVAL;
-               ic->ic_roaming = value;
+               }
                break;
        case IEEE80211_PARAM_PRIVACY:
                if (value) {

-------------------------------------------------------------------------
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>