summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordamien <damien@openbsd.org>2005-04-02 10:53:03 +0000
committerdamien <damien@openbsd.org>2005-04-02 10:53:03 +0000
commit036b982df55aad9ece73d769fdef6bef4ceea53f (patch)
tree6bc0f736056d0c4643d3d27e9c4555685502f7ef
parentset the bssid in hostap mode too. (diff)
downloadwireguard-openbsd-036b982df55aad9ece73d769fdef6bef4ceea53f.tar.xz
wireguard-openbsd-036b982df55aad9ece73d769fdef6bef4ceea53f.zip
call ral_set_chan() in IEEE80211_S_RUN too. this was causing troubles with
hostap mode.
-rw-r--r--sys/dev/ic/ral.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c
index f5f7488dce0..5d4b5eaaf69 100644
--- a/sys/dev/ic/ral.c
+++ b/sys/dev/ic/ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ral.c,v 1.47 2005/04/02 10:37:01 damien Exp $ */
+/* $OpenBSD: ral.c,v 1.48 2005/04/02 10:53:03 damien Exp $ */
/*-
* Copyright (c) 2005
@@ -908,6 +908,8 @@ ral_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg)
break;
case IEEE80211_S_RUN:
+ ral_set_chan(sc, ic->ic_bss->ni_chan);
+
if (ic->ic_opmode != IEEE80211_M_MONITOR) {
ral_set_bssid(sc, ic->ic_bss->ni_bssid);
ral_update_slot(sc);