From nobody Wed Nov 1 15:09:51 2023 X-Original-To: freebsd-wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SL9RD409kz4yS6r for ; Wed, 1 Nov 2023 15:10:00 +0000 (UTC) (envelope-from laurent@nilio.ca) Received: from nilio.ca (nilio.ca [157.230.215.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "nilio.ca", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SL9RD1w1jz4cll for ; Wed, 1 Nov 2023 15:10:00 +0000 (UTC) (envelope-from laurent@nilio.ca) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nilio.ca; s=20230627; t=1698851399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GeAxBaxsd1QsY+sj3EB2kgrkpktjm7WNRI2jWtHfjhs=; b=YdRhfULmYgkxjg+7KpKrmx31xTgV4LWnT0nHWsxiamsrDLmStwzYtWuwDL68tEpcHOrrQb nS/mljS7g0fhRSRynvZgLoAJCj3dIEedXlYqFzaMsst9dqmfOYrkdTBpneCIEKMSGxpSDR gcw+hEg6f1ShcsP3qkVCsZCx89IcQVM= Received: from [10.0.0.222] (modemcable042.222-162-184.mc.videotron.ca [184.162.222.42]) by NILIO (OpenSMTPD) with ESMTPSA id 025466cc (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 1 Nov 2023 15:09:59 +0000 (UTC) Message-ID: <294a97b7-09df-ba92-2333-0d2ae3f7440d@nilio.ca> Date: Wed, 1 Nov 2023 11:09:51 -0400 List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: ALFA RTL8812au connection is unstable. Content-Language: en-US To: "Bjoern A. Zeeb" Cc: freebsd-wireless@freebsd.org References: From: Laurent Cimon In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:14061, ipnet:157.230.208.0/20, country:US] X-Rspamd-Queue-Id: 4SL9RD1w1jz4cll On 11/1/23 09:53, Bjoern A. Zeeb wrote: > On Wed, 1 Nov 2023, Laurent Cimon wrote: > >> Hello, >> >> I have an RTL8812au card on FreeBSD 14.0-STABLE and the connection is >> very unstable. >> For example, when downloading packages with pkg, the download rate >> goes down to 0 >> for a few seconds, then goes up not above 2MB/s for a few seconds, >> it's often under 500KB/s >> and often does not last longer than a second or so, then goes back to >> 0 for a few seconds. >> >> I haven't felt this instability when browsing the web or pinging, it >> seems to happen during longer connections. > > How many networks are in your neighbourhood? > > ifconfig wlan0 list scan > > will tell to some degree. > > /bz > > > >> Here are some system information. I've tried changing a few tunables >> but nothing changed. >> >> root@JOY# sysctl -a | grep rtwn >> rtwn0 on uhub3 >> rtwn0: on usbus5 >> rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R >> <118>   parent interface: rtwn0 >> net.wlan.0.%parent: rtwn0 >> net.wlan.devices: rtwn0 >>         value:  /boot/kernel/rtwn-rtl8812aufw.ko >>         value:  /boot/kernel/if_rtwn_usb.ko >>         value:  /boot/kernel/rtwn.ko >> dev.rtwn.0.rx_buf_size: 48 >> dev.rtwn.0.ratectl_selected: 1 >> dev.rtwn.0.ratectl: 2 >> dev.rtwn.0.hwcrypto: 1 >> dev.rtwn.0.debug: 0 >> dev.rtwn.0.ht40: 0 >> dev.rtwn.0.%parent: uhub3 >> dev.rtwn.0.%pnpinfo: vendor=0x0bda product=0x8812 devclass=0x00 >> devsubclass=0x00 devproto=0x00 sernum="123456" release=0x0000 >> mode=host intclass=0xff intsubclass=0xff intprotocol=0xff >> dev.rtwn.0.%location: bus=5 hubaddr=1 port=2 devaddr=2 interface=0 >> ugen=ugen5.2 >> dev.rtwn.0.%driver: rtwn >> dev.rtwn.0.%desc: Realtek 802.11n NIC, class 0/0, rev 2.00/0.00, addr 2 >> dev.rtwn.%parent: >> >> Thank you, >> Laurent >> >> > ifconfig wlan0 list scan shows 8 including mine. Laurent