diff options
author | 2005-04-02 11:00:11 +0000 | |
---|---|---|
committer | 2005-04-02 11:00:11 +0000 | |
commit | 563577d0484b1fd09bff8ec87c4c0529e80cfb9a (patch) | |
tree | c91e7f62faa08e680ea497214420599083112d8c | |
parent | call ral_set_chan() in IEEE80211_S_RUN too. this was causing troubles with (diff) | |
download | wireguard-openbsd-563577d0484b1fd09bff8ec87c4c0529e80cfb9a.tar.xz wireguard-openbsd-563577d0484b1fd09bff8ec87c4c0529e80cfb9a.zip |
sync with ral. fixes hostap mode.
-rw-r--r-- | sys/dev/usb/if_ral.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index 401941ce25d..cb6e95e3c78 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.22 2005/04/01 13:13:42 damien Exp $ */ +/* $OpenBSD: if_ral.c,v 1.23 2005/04/02 11:00:11 damien Exp $ */ /*- * Copyright (c) 2005 @@ -715,8 +715,9 @@ ural_task(void *arg) break; case IEEE80211_S_RUN: - if (ic->ic_opmode != IEEE80211_M_MONITOR && - ic->ic_opmode != IEEE80211_M_HOSTAP) + ural_set_chan(sc, ic->ic_bss->ni_chan); + + if (ic->ic_opmode != IEEE80211_M_MONITOR) ural_set_bssid(sc, ic->ic_bss->ni_bssid); if (ic->ic_opmode == IEEE80211_M_HOSTAP || |