From 750d6d0c60338c0c1bc74b07b6b19b37b874bb9f Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Fri, 2 Apr 2004 23:25:39 +0000 Subject: fix adhoc/ibss operation for drivers that require host support (e.g. ath): o remove IEEE80211_C_RCVMGT capability o on transmit craft new nodes as needed using new ieee80211_find_txnode routine o add ieee80211_find_txnode routine to lookup a node by mac address and if not present create one when operating in ibss/ahdemo mode; new nodes are dup'd from bss and the driver is told to treat the node as if a new association has been created so driver-private state (e.g. rate control handling) is setup Obtained from: netbsd (basic idea) --- sys/net80211/ieee80211_node.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/net80211/ieee80211_node.h') diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h index b0e043749f73..0725ffbba0b5 100644 --- a/sys/net80211/ieee80211_node.h +++ b/sys/net80211/ieee80211_node.h @@ -141,6 +141,8 @@ extern struct ieee80211_node *ieee80211_dup_bss(struct ieee80211com *, u_int8_t *); extern struct ieee80211_node *ieee80211_find_node(struct ieee80211com *, u_int8_t *); +extern struct ieee80211_node *ieee80211_find_txnode(struct ieee80211com *, + u_int8_t *); extern struct ieee80211_node * ieee80211_lookup_node(struct ieee80211com *, u_int8_t *macaddr, struct ieee80211_channel *); extern void ieee80211_free_node(struct ieee80211com *, -- cgit v1.2.3