madwifi: move autochannel idletime decision after radar and phy mode checking
authorFelix Fietkau <nbd@openwrt.org>
Tue, 9 Dec 2008 18:28:22 +0000 (18:28 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 9 Dec 2008 18:28:22 +0000 (18:28 +0000)
SVN-Revision: 13564

package/madwifi/patches/389-autochannel.patch

index 7926d2e58d0a8a1d155232519476379fb285a935..0e4cad873ddc11864368dbc0671eb98e6934cb15 100644 (file)
  pc_cmp_samechan(struct ieee80211com *ic, struct ieee80211_channel *a,
                struct ieee80211_channel *b)
  {
-@@ -455,6 +468,7 @@ pc_cmp(const void *_a, const void *_b)
-               return res;                                     \
- } while (0)
+@@ -457,6 +470,7 @@ pc_cmp(const void *_a, const void *_b)
  
-+      EVALUATE_CRITERION(idletime, a, b);
        EVALUATE_CRITERION(radar, a, b);
        EVALUATE_CRITERION(keepmode, params, a, b);
++      EVALUATE_CRITERION(idletime, a, b);
        EVALUATE_CRITERION(sc, ic, a, b);
+       /* XXX: rssi useless? pick_channel evaluates it anyway */
+       EVALUATE_CRITERION(rssi, params->ss->ss_priv, a, b);