summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-04-02 10:53:04 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-04-02 10:53:04 +0000
commitcc1ab97c85f61a786cd200e9dad77e4c5f471d72 (patch)
treec92a0d0551e10b9c42ea78248801df5ed733961a
parent0c88c422673c6b1466cbd207033c30c5f3b255dc (diff)
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);