fix 0 bssid problem on rejoin. From FreeBSD.
This commit is contained in:
parent
a94d934365
commit
3f5a745e04
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ieee80211_netbsd.c,v 1.15 2008/01/13 13:01:12 degroote Exp $ */
|
||||
/* $NetBSD: ieee80211_netbsd.c,v 1.16 2008/01/31 22:07:22 christos Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2003-2005 Sam Leffler, Errno Consulting
|
||||
* All rights reserved.
|
||||
@ -30,7 +30,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211_freebsd.c,v 1.8 2005/08/08 18:46:35 sam Exp $");
|
||||
#else
|
||||
__KERNEL_RCSID(0, "$NetBSD: ieee80211_netbsd.c,v 1.15 2008/01/13 13:01:12 degroote Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ieee80211_netbsd.c,v 1.16 2008/01/31 22:07:22 christos Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -673,10 +673,11 @@ ieee80211_notify_node_join(struct ieee80211com *ic, struct ieee80211_node *ni, i
|
||||
RTM_IEEE80211_ASSOC : RTM_IEEE80211_REASSOC,
|
||||
&iev, sizeof(iev));
|
||||
if_link_state_change(ifp, LINK_STATE_UP);
|
||||
} else if (newassoc) {
|
||||
/* fire off wireless event only for new station */
|
||||
} else {
|
||||
IEEE80211_ADDR_COPY(iev.iev_addr, ni->ni_macaddr);
|
||||
rt_ieee80211msg(ifp, RTM_IEEE80211_JOIN, &iev, sizeof(iev));
|
||||
rt_ieee80211msg(ifp, newassoc ?
|
||||
RTM_IEEE80211_JOIN : RTM_IEEE80211_REJOIN,
|
||||
&iev, sizeof(iev));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user