diff options
author | sam <sam@FreeBSD.org> | 2005-07-22 17:57:16 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-07-22 17:57:16 +0000 |
commit | 0bcf56e9b9d9f05330eb9b15f9796cb6985d8fa3 (patch) | |
tree | a07af77112648e585542299e7fe88ca792518139 /sys/net80211/ieee80211_node.c | |
parent | f149e5611056a55b5c10604159afd5c0c682cf10 (diff) | |
download | FreeBSD-src-0bcf56e9b9d9f05330eb9b15f9796cb6985d8fa3.zip FreeBSD-src-0bcf56e9b9d9f05330eb9b15f9796cb6985d8fa3.tar.gz |
simplify ic_newassoc callback
MFC after: 3 days
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index ef1b78a..a2fe867 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1048,7 +1048,7 @@ ieee80211_fakeup_adhoc_node(struct ieee80211_node_table *nt, /* XXX no rate negotiation; just dup */ ni->ni_rates = ic->ic_bss->ni_rates; if (ic->ic_newassoc != NULL) - ic->ic_newassoc(ic, ni, 1); + ic->ic_newassoc(ni, 1); /* XXX not right for 802.1x/WPA */ ieee80211_node_authorize(ni); } @@ -1678,7 +1678,7 @@ ieee80211_node_join(struct ieee80211com *ic, struct ieee80211_node *ni, int resp /* give driver a chance to setup state like ni_txrate */ if (ic->ic_newassoc != NULL) - ic->ic_newassoc(ic, ni, newassoc); + ic->ic_newassoc(ni, newassoc); ni->ni_inact_reload = ic->ic_inact_auth; ni->ni_inact = ni->ni_inact_reload; IEEE80211_SEND_MGMT(ic, ni, resp, IEEE80211_STATUS_SUCCESS); |