summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-03-18 17:42:55 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-03-18 17:42:55 +0000
commit23de2adc6e3e9c069cd10b2bb2a334fcacddf288 (patch)
tree19f5c37988ea57be228e35bda224abf6d6d1f177 /sys
parentc20402813278192227873e7c5e3c657fd1c6f065 (diff)
don't set BSSID in hostap mode. this allows hostap mode to work to some
extend.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ral.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c
index d59e48c960f..673038933d9 100644
--- a/sys/dev/ic/ral.c
+++ b/sys/dev/ic/ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ral.c,v 1.35 2005/03/17 19:51:29 damien Exp $ */
+/* $OpenBSD: ral.c,v 1.36 2005/03/18 17:42:54 damien Exp $ */
/*-
* Copyright (c) 2005
@@ -896,7 +896,8 @@ ral_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg)
case IEEE80211_S_RUN:
if (ic->ic_opmode != IEEE80211_M_MONITOR) {
- ral_set_bssid(sc, ic->ic_bss->ni_bssid);
+ if (ic->ic_opmode != IEEE80211_M_HOSTAP)
+ ral_set_bssid(sc, ic->ic_bss->ni_bssid);
ral_update_slot(sc);
}