Thank you, Stefan. How should I implement the below fix in my system?
Should I install the latest OpenBSD snapshot after a few days?
Regards,
Jake Swensen
On 07/26/16 10:33, Stefan Sperling wrote:
> On Tue, Jul 26, 2016 at 09:26:47AM -0500, Jake Swensen wrote:
>> Hello,
>>
>> My name is Jake Swensen and I would appreciate any help with using the
>> rsu wireless network adapter driver.
>>
>> My friend's RTL8187L 802.11g USB wifi adapter works well (with the urtw
>> driver) on my laptop with OpenBSD 5.9 and 6.0 but I am not able to get a
>> Trendnet TEW-649UB to work. It worked when I had FreeBSD installed on
>> this laptop, so I don't think the hardware is damaged.
> Yes, it was broken in r1.32 (before 5.9):
>
> @@ -2274,8 +2274,8 @@
> ic->ic_bss->ni_chan = ic->ic_ibss_chan;
>
> /* We're ready to go. */
> - ifp->if_flags &= ~IFF_OACTIVE;
> ifp->if_flags |= IFF_RUNNING;
> + ifq_set_oactive(&ifp->if_snd);
>
> So the driver sets IFF_OACTIVE at init and no frames will pass out.
>
> This fixes it:
>
> Index: if_rsu.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/if_rsu.c,v
> retrieving revision 1.34
> diff -u -p -r1.34 if_rsu.c
> --- if_rsu.c 13 Apr 2016 11:03:37 -0000 1.34
> +++ if_rsu.c 26 Jul 2016 15:31:44 -0000
> @@ -2263,7 +2263,7 @@ rsu_init(struct ifnet *ifp)
>
> /* We're ready to go. */
> ifp->if_flags |= IFF_RUNNING;
> - ifq_set_oactive(&ifp->if_snd);
> + ifq_clr_oactive(&ifp->if_snd);
>
> #ifdef notyet
> if (ic->ic_flags & IEEE80211_F_WEPON) {