svn commit: r280099 - head/sys/dev/wpi

Adrian Chadd adrian at FreeBSD.org
Sun Mar 15 21:09:30 UTC 2015


Author: adrian
Date: Sun Mar 15 21:09:29 2015
New Revision: 280099
URL: https://svnweb.freebsd.org/changeset/base/280099

Log:
  Disable powersave in IBSS mode (packet loss > 90%.)
  
  PR:		kern/197143
  Submitted by:	Andriy Voskoboinyk <s3erios at gmail.com>

Modified:
  head/sys/dev/wpi/if_wpi.c

Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c	Sun Mar 15 21:08:54 2015	(r280098)
+++ head/sys/dev/wpi/if_wpi.c	Sun Mar 15 21:09:29 2015	(r280099)
@@ -4311,7 +4311,8 @@ wpi_run(struct wpi_softc *sc, struct iee
 	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);


More information about the svn-src-head mailing list