Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Mar 2015 21:09:30 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r280099 - head/sys/dev/wpi
Message-ID:  <201503152109.t2FL9Uw2080785@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503152109.t2FL9Uw2080785>