summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_proto.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-07-22 21:11:26 +0000
committersam <sam@FreeBSD.org>2005-07-22 21:11:26 +0000
commite4bb8fb68f00d88f5362f278abb4cd2e326285f7 (patch)
tree2cd048b051600ca3675d42b8b6ea39c9bd58c781 /sys/net80211/ieee80211_proto.c
parentbd0efadacda73f031838bab860b64bc4f02b89c4 (diff)
downloadFreeBSD-src-e4bb8fb68f00d88f5362f278abb4cd2e326285f7.zip
FreeBSD-src-e4bb8fb68f00d88f5362f278abb4cd2e326285f7.tar.gz
split xmit of probe request frame out into a separate routine that
takes explicit parameters; this will be needed when scanning is decoupled from the state machine to do bg scanning MFC after: 3 days
Diffstat (limited to 'sys/net80211/ieee80211_proto.c')
-rw-r--r--sys/net80211/ieee80211_proto.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c
index 0288b0d..b76d576 100644
--- a/sys/net80211/ieee80211_proto.c
+++ b/sys/net80211/ieee80211_proto.c
@@ -923,8 +923,11 @@ ieee80211_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg
*/
if ((ic->ic_flags & IEEE80211_F_ASCAN) &&
(ni->ni_chan->ic_flags & IEEE80211_CHAN_PASSIVE) == 0) {
- IEEE80211_SEND_MGMT(ic, ni,
- IEEE80211_FC0_SUBTYPE_PROBE_REQ, 0);
+ ieee80211_send_probereq(ni,
+ ic->ic_myaddr, ifp->if_broadcastaddr,
+ ifp->if_broadcastaddr,
+ ic->ic_des_essid, ic->ic_des_esslen,
+ ic->ic_opt_ie, ic->ic_opt_ie_len);
}
break;
case IEEE80211_S_RUN:
OpenPOWER on IntegriCloud