svn commit: r195552 - projects/mesh11s/sys/net80211
Rui Paulo
rpaulo at FreeBSD.org
Fri Jul 10 11:55:02 UTC 2009
Author: rpaulo
Date: Fri Jul 10 11:55:01 2009
New Revision: 195552
URL: http://svn.freebsd.org/changeset/base/195552
Log:
Remove is11bclient.
Sponsored by: The FreeBSD Foundation
Modified:
projects/mesh11s/sys/net80211/ieee80211_mesh.c
Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_mesh.c Fri Jul 10 11:53:35 2009 (r195551)
+++ projects/mesh11s/sys/net80211/ieee80211_mesh.c Fri Jul 10 11:55:01 2009 (r195552)
@@ -1039,23 +1039,6 @@ out:
return type;
}
-static int
-is11bclient(const uint8_t *rates, const uint8_t *xrates)
-{
- static const uint32_t brates = (1<<2*1)|(1<<2*2)|(1<<11)|(1<<2*11);
- int i;
-
- /* NB: the 11b clients we care about will not have xrates */
- if (xrates != NULL || rates == NULL)
- return 0;
- for (i = 0; i < rates[1]; i++) {
- int r = rates[2+i] & IEEE80211_RATE_VAL;
- if (r > 2*11 || ((1<<r) & brates) == 0)
- return 0;
- }
- return 1;
-}
-
static void
mesh_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m0, int subtype,
int rssi, int nf)
@@ -1244,8 +1227,7 @@ mesh_recv_mgmt(struct ieee80211_node *ni
* only a bare-bones rate set, communicate this to
* the transmit side.
*/
- ieee80211_send_proberesp(vap, wh->i_addr2,
- is11bclient(rates, xrates) ? IEEE80211_SEND_LEGACY_11B : 0);
+ ieee80211_send_proberesp(vap, wh->i_addr2, 0);
break;
}
case IEEE80211_FC0_SUBTYPE_ACTION:
More information about the svn-src-projects
mailing list