From e23cfc4aacdfa094b37fc953a0afe8da54a6c83a Mon Sep 17 00:00:00 2001 From: adrian Date: Sun, 15 Mar 2015 21:09:29 +0000 Subject: [PATCH] Disable powersave in IBSS mode (packet loss > 90%.) PR: kern/197143 Submitted by: Andriy Voskoboinyk --- sys/dev/wpi/if_wpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c index 406c4fd83684..22bb967ba142 100644 --- a/sys/dev/wpi/if_wpi.c +++ b/sys/dev/wpi/if_wpi.c @@ -4311,7 +4311,8 @@ wpi_run(struct wpi_softc *sc, struct ieee80211vap *vap) callout_reset(&sc->calib_to, 60*hz, wpi_calib_timeout, sc); /* Enable power-saving mode if requested by user. */ - if (vap->iv_flags & IEEE80211_F_PMGTON) + if ((vap->iv_flags & IEEE80211_F_PMGTON) && + vap->iv_opmode != IEEE80211_M_IBSS) (void)wpi_set_pslevel(sc, 0, 3, 1); else (void)wpi_set_pslevel(sc, 0, 0, 1);