wl1251: disable BET code
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 22 May 2013 00:29:09 +0000 (03:29 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 23 May 2013 22:13:08 +0000 (01:13 +0300)
It's known to be causing problems (very low performance) on at least one
router (even WL1251_ACX_BET_DISABLE call is doing bad things there).
I could not see measurable power usage improvement with this, so
disable those calls.

drivers/net/wireless/wl1251/ps.c

index db719f7..8a1ff38 100644 (file)
@@ -123,10 +123,12 @@ int wl1251_ps_set_mode(struct wl1251 *wl, enum wl1251_station_mode mode)
                if (ret < 0)
                        return ret;
 
+#if 0 /* problems seen on one router */
                ret = wl1251_acx_bet_enable(wl, WL1251_ACX_BET_ENABLE,
                                            WL1251_DEFAULT_BET_CONSECUTIVE);
                if (ret < 0)
                        return ret;
+#endif
 
                ret = wl1251_cmd_ps_mode(wl, CHIP_POWER_SAVE_MODE);
                if (ret < 0)
@@ -155,11 +157,13 @@ int wl1251_ps_set_mode(struct wl1251 *wl, enum wl1251_station_mode mode)
                if (ret < 0)
                        return ret;
 
+#if 0
                /* disable BET */
                ret = wl1251_acx_bet_enable(wl, WL1251_ACX_BET_DISABLE,
                                            WL1251_DEFAULT_BET_CONSECUTIVE);
                if (ret < 0)
                        return ret;
+#endif
 
                /* disable beacon filtering */
                ret = wl1251_acx_beacon_filter_opt(wl, false);