Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 04:10:11 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-wireless@FreeBSD.org
Subject:   Re: kern/165517: commit references a PR
Message-ID:  <201202280410.q1S4AB3M049608@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/165517; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/165517: commit references a PR
Date: Tue, 28 Feb 2012 04:05:51 +0000 (UTC)

 Author: adrian
 Date: Tue Feb 28 04:05:35 2012
 New Revision: 232244
 URL: http://svn.freebsd.org/changeset/base/232244
 
 Log:
   Track the number of bad beacons received.
   
   PR:		kern/165517
 
 Modified:
   head/sys/net80211/ieee80211_ioctl.h
   head/sys/net80211/ieee80211_sta.c
 
 Modified: head/sys/net80211/ieee80211_ioctl.h
 ==============================================================================
 --- head/sys/net80211/ieee80211_ioctl.h	Tue Feb 28 03:11:02 2012	(r232243)
 +++ head/sys/net80211/ieee80211_ioctl.h	Tue Feb 28 04:05:35 2012	(r232244)
 @@ -241,8 +241,9 @@ struct ieee80211_stats {
  	uint32_t	is_mesh_notproxy;	/* dropped 'cuz not proxying */
  	uint32_t	is_rx_badalign;		/* dropped 'cuz misaligned */
  	uint32_t	is_hwmp_proxy;		/* PREP for proxy route */
 +	uint32_t	is_beacon_bad;		/* Number of bad beacons */
  	
 -	uint32_t	is_spare[11];
 +	uint32_t	is_spare[10];
  };
  
  /*
 
 Modified: head/sys/net80211/ieee80211_sta.c
 ==============================================================================
 --- head/sys/net80211/ieee80211_sta.c	Tue Feb 28 03:11:02 2012	(r232243)
 +++ head/sys/net80211/ieee80211_sta.c	Tue Feb 28 04:05:35 2012	(r232244)
 @@ -1305,8 +1305,10 @@ sta_recv_mgmt(struct ieee80211_node *ni,
  			return;
  		}
  		/* XXX probe response in sta mode when !scanning? */
 -		if (ieee80211_parse_beacon(ni, m0, &scan) != 0)
 +		if (ieee80211_parse_beacon(ni, m0, &scan) != 0) {
 +			vap->iv_stats.is_beacon_bad++;
  			return;
 +		}
  		/*
  		 * Count frame now that we know it's to be processed.
  		 */
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



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