Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2011 16:59:07 +0000 (UTC)
From:      Bernhard Schmidt <bschmidt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r217885 - stable/8/sys/net80211
Message-ID:  <201101261659.p0QGx7C5083247@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bschmidt
Date: Wed Jan 26 16:59:07 2011
New Revision: 217885
URL: http://svn.freebsd.org/changeset/base/217885

Log:
  MFC r217590:
  Jump to the next element and not to an arbitrary point. frm[1] contains
  the element's data length, frm[2] is the first byte of the element's data.
  
  Submitted by:	Monthadar Al Jaberi <monthadar at gmail.com>

Modified:
  stable/8/sys/net80211/ieee80211_mesh.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/net80211/ieee80211_mesh.c
==============================================================================
--- stable/8/sys/net80211/ieee80211_mesh.c	Wed Jan 26 13:18:26 2011	(r217884)
+++ stable/8/sys/net80211/ieee80211_mesh.c	Wed Jan 26 16:59:07 2011	(r217885)
@@ -1461,7 +1461,7 @@ mesh_recv_mgmt(struct ieee80211_node *ni
 				meshid = frm;
 				break;
 			}
-			frm += frm[2] + 2;
+			frm += frm[1] + 2;
 		}
 		IEEE80211_VERIFY_ELEMENT(ssid, IEEE80211_NWID_LEN, return);
 		IEEE80211_VERIFY_ELEMENT(rates, IEEE80211_RATE_MAXSIZE, return);



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