summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2004-12-31 21:25:28 +0000
committersam <sam@FreeBSD.org>2004-12-31 21:25:28 +0000
commit95f27e450d64d100c9e5693b03a62ca3289b8f89 (patch)
treef21fb53de9c8be0a4d743e94043edd3c99cb5cfa /sys/net80211
parent2cf886f5dccadd6aaf976ea1502953d562dd502f (diff)
downloadFreeBSD-src-95f27e450d64d100c9e5693b03a62ca3289b8f89.zip
FreeBSD-src-95f27e450d64d100c9e5693b03a62ca3289b8f89.tar.gz
do 11g erp station management in turboG mode too
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_node.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 02553ec..b9a158f 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1600,7 +1600,8 @@ ieee80211_node_join(struct ieee80211com *ic, struct ieee80211_node *ni, int resp
IEEE80211_AID_SET(ni->ni_associd, ic->ic_aid_bitmap);
ic->ic_sta_assoc++;
newassoc = 1;
- if (ic->ic_curmode == IEEE80211_MODE_11G)
+ if (ic->ic_curmode == IEEE80211_MODE_11G ||
+ ic->ic_curmode == IEEE80211_MODE_TURBO_G)
ieee80211_node_join_11g(ic, ni);
} else
newassoc = 0;
@@ -1628,7 +1629,8 @@ static void
ieee80211_node_leave_11g(struct ieee80211com *ic, struct ieee80211_node *ni)
{
- KASSERT(ic->ic_curmode == IEEE80211_MODE_11G,
+ KASSERT(ic->ic_curmode == IEEE80211_MODE_11G ||
+ ic->ic_curmode == IEEE80211_MODE_TURBO_G,
("not in 11g, curmode %x", ic->ic_curmode));
/*
@@ -1716,7 +1718,8 @@ ieee80211_node_leave(struct ieee80211com *ic, struct ieee80211_node *ni)
ni->ni_associd = 0;
ic->ic_sta_assoc--;
- if (ic->ic_curmode == IEEE80211_MODE_11G)
+ if (ic->ic_curmode == IEEE80211_MODE_11G ||
+ ic->ic_curmode == IEEE80211_MODE_TURBO_G)
ieee80211_node_leave_11g(ic, ni);
/*
* Cleanup station state. In particular clear various
OpenPOWER on IntegriCloud