From fc5e33634728bde6c974cd8aeff04d1c32f3aae9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 26 Nov 2006 11:14:24 +0000 Subject: do not have each net80211 driver define its own rates structures. if they use the standard rates, use some defined by net80211 itself. kernel shrinks a bit ok jsg mglocker --- sys/dev/ic/bcw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic/bcw.c') diff --git a/sys/dev/ic/bcw.c b/sys/dev/ic/bcw.c index 6414d5f3275..264275ad0bc 100644 --- a/sys/dev/ic/bcw.c +++ b/sys/dev/ic/bcw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcw.c,v 1.6 2006/11/24 20:27:41 mglocker Exp $ */ +/* $OpenBSD: bcw.c,v 1.7 2006/11/26 11:14:17 deraadt Exp $ */ /* * Copyright (c) 2006 Jon Simola @@ -650,8 +650,8 @@ bcw_attach(struct bcw_softc *sc) printf(", address %s\n", ether_sprintf(ic->ic_myaddr)); /* Set supported rates */ - ic->ic_sup_rates[IEEE80211_MODE_11B] = bcw_rateset_11b; - ic->ic_sup_rates[IEEE80211_MODE_11G] = bcw_rateset_11g; + ic->ic_sup_rates[IEEE80211_MODE_11B] = ieee80211_std_rateset_11b; + ic->ic_sup_rates[IEEE80211_MODE_11G] = ieee80211_std_rateset_11g; /* Set supported channels */ for (i = 1; i <= 14; i++) { -- cgit v1.2.3