summaryrefslogtreecommitdiffstats
path: root/sys/dev/wpi
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-06-07 18:38:02 +0000
committersam <sam@FreeBSD.org>2008-06-07 18:38:02 +0000
commit87278ff58a1872ef2002ec481db68eebce6f5884 (patch)
tree35c5bfa4ecd32a44b4590d4a19f0dd51d652edaf /sys/dev/wpi
parentcbfc222a8531691610103b4385fa39d29d114bbc (diff)
downloadFreeBSD-src-87278ff58a1872ef2002ec481db68eebce6f5884.zip
FreeBSD-src-87278ff58a1872ef2002ec481db68eebce6f5884.tar.gz
Change the calling convention for ic_node_alloc to deal with
some longstanding issues: o pass the vap since it's now the "coin of the realm" and required to do things like set initial tx parameters in private node state for use prior to association o pass the mac address as cards that maintain outboard station tables require this to create an entry (e.g. in ibss mode) o remove the node table reference, we only have one node table and it's unlikely this will change so this is not needed to find the com structure
Diffstat (limited to 'sys/dev/wpi')
-rw-r--r--sys/dev/wpi/if_wpi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c
index 959e20c..8257e87 100644
--- a/sys/dev/wpi/if_wpi.c
+++ b/sys/dev/wpi/if_wpi.c
@@ -170,7 +170,8 @@ static int wpi_alloc_tx_ring(struct wpi_softc *, struct wpi_tx_ring *,
int, int);
static void wpi_reset_tx_ring(struct wpi_softc *, struct wpi_tx_ring *);
static void wpi_free_tx_ring(struct wpi_softc *, struct wpi_tx_ring *);
-static struct ieee80211_node *wpi_node_alloc(struct ieee80211_node_table *);
+static struct ieee80211_node *wpi_node_alloc(struct ieee80211vap *,
+ const uint8_t mac[IEEE80211_ADDR_LEN]);
static int wpi_newstate(struct ieee80211vap *, enum ieee80211_state, int);
static void wpi_mem_lock(struct wpi_softc *);
static void wpi_mem_unlock(struct wpi_softc *);
@@ -1246,7 +1247,8 @@ wpi_resume(device_t dev)
/* ARGSUSED */
static struct ieee80211_node *
-wpi_node_alloc(struct ieee80211_node_table *ic)
+wpi_node_alloc(struct ieee80211vap *vap __unused,
+ const uint8_t mac[IEEE80211_ADDR_LEN] __unused)
{
struct wpi_node *wn;
OpenPOWER on IntegriCloud