From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: Which usb wi-fi adapter from those to choose? Date: Sat, 21 Mar 2020 18:28:58 +0000 Message-ID: References: <20200220073724.GS1968@E5400> <123a4c7bee70346c6c7dc4ba735dfd29@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33973) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFirq-0002Zp-Qf for help-guix@gnu.org; Sat, 21 Mar 2020 14:29:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFiro-0007iJ-Dn for help-guix@gnu.org; Sat, 21 Mar 2020 14:29:06 -0400 Received: from knopi.disroot.org ([178.21.23.139]:38046) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jFirn-0007hZ-Ij for help-guix@gnu.org; Sat, 21 Mar 2020 14:29:04 -0400 In-Reply-To: <20200220073724.GS1968@E5400> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Efraim Flashner Cc: help-guix Thank you, Efraimm Flashner, thank you very much!!=0AThis Wi-Fi USB adapt= er works on OS Guix!=0A=0A"WTXUP for Atheros AR9271 150Mbps 802.11n Wirel= ess WiFi USB Adapter Wi Fi Dongle internal Antenna Soft AP for Windows7/8= /10/Linux"=0A=0AI have bought this one too. And Guix works with it this w= ay:=0A=0A=0A=3D=3D=3D=3Dstep 1. get info about new hardware=3D=3D=3D=3D= =3D=3D=3D=3D=0A=0A# ifconfig -a=0Aenp3s0 Link encap:Ethernet HWaddr ee:tt= :ee:tt:ee:tt=0AUP BROADCAST MULTICAST MTU:1500 Metric:1=0ARX packets:0 er= rors:0 dropped:0 overruns:0 frame:0=0ATX packets:0 errors:0 dropped:0 ove= rruns:0 carrier:0=0Acollisions:0 txqueuelen:1000=0ARX bytes:0 TX bytes:0= =0A=0Alo Link encap:Local Loopback=0Ainet addr:127.0.0.1 Bcast:0.0.0.0 Ma= sk:255.0.0.0=0AUP LOOPBACK RUNNING MTU:65536 Metric:1=0ARX packets:0 erro= rs:0 dropped:0 overruns:0 frame:0=0ATX packets:0 errors:0 dropped:0 overr= uns:0 carrier:0=0Acollisions:0 txqueuelen:1000=0ARX bytes:0 TX bytes:0=0A= =0Awlp0s29u1u2Link encap:Ethernet HWaddr pp:ii:pp:ii:pp:ii=0AUP BROADCAST= MULTICAST MTU:1500 Metric:1=0ARX packets:0 errors:0 dropped:0 overruns:0= frame:0=0ATX packets:0 errors:0 dropped:0 overruns:0 carrier:0=0Acollisi= ons:0 txqueuelen:1000=0ARX bytes:0 TX bytes:0=0A=0Awlp2s0 Link encap:Ethe= rnet HWaddr xx:pp:xx:pp:pp=0Ainet addr:192.168.1.70 Bcast:192.168.1.255 M= ask:255.255.255.0=0ABROADCAST MULTICAST MTU:1500 Metric:1=0ARX packets:15= 7 errors:0 dropped:0 overruns:0 frame:0=0ATX packets:19 errors:0 dropped:= 0 overruns:0 carrier:0=0Acollisions:0 txqueuelen:1000=0ARX bytes:49195 TX= bytes:2254=0A=0A# rfkill list all=0A0: phy0: Wireless LAN=0ASoft blocked= : no=0AHard blocked: no=0A1: phy1: Wireless LAN=0ASoft blocked: no=0AHard= blocked: no=0A=0A=0A# lsusb=0ABus 001 Device 006: ID 5986:0652 Acer, Inc= =0ABus 001 Device 004: ID 0cf3:9271 Qualcomm Atheros Communications AR927= 1 802.11n=0ABus 001 Device 008: ID 0cf3:3004 Qualcomm Atheros Communicati= ons AR3012 Bluetooth 4.0=0ABus 001 Device 003: ID 248a:8367 Maxxter=0ABus= 001 Device 007: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Re= ader Controller=0ABus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. Hu= b=0ABus 001 Device 002: ID 8087:07e6 Intel Corp.=0ABus 001 Device 001: ID= 1d6b:0002 Linux Foundation 2.0 root hub=0A=0A=0A# ip a=0A1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1= 000=0Alink/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00=0Ainet 127.0.= 0.1/8 scope host lo=0Avalid_lft forever preferred_lft forever=0Ainet6 ::1= /128 scope host=0Avalid_lft forever preferred_lft forever=0A2: enp3s0: mtu 1500 qdisc pfifo_fast state DOWN gr= oup default qlen 1000=0Alink/ether ee:tt:ee:tt:ee:tt brd ff:ff:ff:ff:ff:f= f=0A3: wlp2s0: mtu 1500 qdisc noqueue s= tate UP group default qlen 1000=0Alink/ether xx:pp:xx:pp:pp brd ff:ff:ff:= ff:ff:ff=0Ainet 192.168.1.70/24 brd 192.168.1.255 scope global wlp2s0=0Av= alid_lft forever preferred_lft forever=0Ainet6 qq:cc:qq:cc:qq:cc/64 scope= link=0Avalid_lft forever preferred_lft forever=0A4: wlp0s29u1u2: mtu 1500 qdisc mq state DOWN group default q= len 1000=0Alink/ether xx:ii:xx:ii:xx:ii brd ff:ff:ff:ff:ff:ff=0A=0A=0A=0A= =0A~# lspci -k=0A00:00.0 Host bridge: Intel Corporation Atom Processor Z3= 6xxx/Z37xxx Series SoC Transaction Register (rev 0e)=0ASubsystem: Lenovo = Device 3905=0AKernel driver in use: iosf_mbi_pci=0A00:02.0 VGA compatible= controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphi= cs & Display (rev 0e)=0ASubsystem: Lenovo Device 3905=0AKernel driver in = use: i915=0AKernel modules: i915=0A00:13.0 SATA controller: Intel Corpora= tion Atom Processor E3800 Series SATA AHCI Controller (rev 0e)=0ASubsyste= m: Lenovo Device 3905=0AKernel driver in use: ahci=0AKernel modules: ahci= =0A00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx= /Z37xxx Series Trusted Execution Engine (rev 0e)=0ASubsystem: Lenovo Devi= ce 3905=0A00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z= 37xxx Series High Definition Audio Controller (rev 0e)=0ASubsystem: Lenov= o Device 3905=0AKernel driver in use: snd_hda_intel=0AKernel modules: snd= _hda_intel=0A00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 S= eries PCI Express Root Port 1 (rev 0e)=0AKernel driver in use: pcieport= =0A00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI = Express Root Port 3 (rev 0e)=0AKernel driver in use: pcieport=0A00:1c.3 P= CI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root= Port 4 (rev 0e)=0AKernel driver in use: pcieport=0A00:1d.0 USB controlle= r: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB EHCI (rev 0e= )=0ASubsystem: Lenovo Device 3905=0AKernel driver in use: ehci-pci=0A00:1= f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Pow= er Control Unit (rev 0e)=0ASubsystem: Lenovo Device 3905=0AKernel driver = in use: lpc_ich=0AKernel modules: lpc_ich=0A00:1f.3 SMBus: Intel Corporat= ion Atom Processor E3800 Series SMBus Controller (rev 0e)=0ASubsystem: Le= novo Device 3905=0AKernel driver in use: i801_smbus=0AKernel modules: i2c= _i801=0A02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wir= eless Network Adapter (rev 01)=0ASubsystem: Lenovo Device 4026=0AKernel d= river in use: ath9k=0AKernel modules: ath9k=0A03:00.0 Ethernet controller= : Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit E= thernet Controller (rev 10)=0ASubsystem: Lenovo Device 3816=0AKernel driv= er in use: r8169=0AKernel modules: r8169=0A=0A=0A=0A# lshw -C network=0A*= -network=0Adescription: Wireless interface=0Aphysical id: 0=0Abus info: p= ci@0000:02:00.0=0Alogical name: wlp2s0=0Aversion: 01=0Aserial:xx:pp:xx:pp= :xx:pp=0Awidth: 64 bits=0Aclock: 33MHz=0Acapabilities: pm msi pciexpress = bus_master cap_list rom ethernet physical wireless=0Aconfiguration: broad= cast=3Dyes driver=3Dath9k driverversion=3D5.2.6-gnu firmware=3DN/A ip=3D1= 92.168.1.70 latency=3D0 link=3Dyes multicast=3Dyes wireless=3DIEEE 802.11= =0Aresources: irq:18 memory:90500000-9057ffff memory:90580000-9058ffff=0A= *-network=0Adescription: Ethernet interface=0Aphysical id: 0=0Abus info: = pci@0000:03:00.0=0Alogical name: enp3s0=0Aversion: 10=0Aserial: ee:tt:ee:= tt:ee:tt=0Acapacity: 1Gbit/s=0Awidth: 64 bits=0Aclock: 33MHz=0Acapabiliti= es: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp m= ii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation=0Aconfiguration:= autonegotiation=3Don broadcast=3Dyes driver=3Dr8169 latency=3D0 link=3Dn= o multicast=3Dyes port=3DMII=0Aresources: irq:19 ioport:1000(size=3D256) = memory:90404000-90404fff memory:90400000-90403fff=0A*-network=0Adescripti= on: Wireless interface=0Aphysical id: 3=0Abus info: usb@1:1.2=0Alogical n= ame: wlp0s29u1u2=0Aserial: xx:ii:xx:ii:xx:ii=0Acapabilities: ethernet phy= sical wireless=0Aconfiguration: broadcast=3Dyes driver=3Dath9k_htc driver= version=3D5.2.6-gnu firmware=3D1.4 link=3Dno multicast=3Dyes wireless=3DI= EEE 802.11=0A=0A=0A=0A=3D=3D=3D=3Dstep 2. then I go to wi-fi Admin Panel = to add new device and its MAC to permit access=3D=3D=3D=3D=3D=3D=3D=0A=0A= 192.168.1.1 or so=0A=0A=0A=3D=3D=3D=3Dstep 3. stop my usual networking se= rvices:=3D=3D=3D=3D=3D=3D=3D=0A# herd stop networking=0AService networkin= g has been stopped.=0A# herd stop wpa-supplicant=0AService wpa-supplicant= has been stopped.=0A=0A=0A=3D=3D=3D=3Dstep 4. run wi-fi through wi-fi us= b adapter=3D=3D=3D=3D=3D=3D=3D=0A=0A# ifconfig wlp0s29u1u2 up=0Awlp0s29u1= u2Link encap:Ethernet HWaddr xx:ii:xx:ii:xx:ii=0A inet addr:192= .168.1.68 Bcast:192.168.1.255 Mask:255.255.255.0=0A UP BROADCA= ST MULTICAST MTU:1500 Metric:1=0A RX packets:0 errors:0 droppe= d:0 overruns:0 frame:0=0A TX packets:0 errors:0 dropped:0 overru= ns:0 carrier:0=0A collisions:0 txqueuelen:1000=0A RX by= tes:0 TX bytes:0=0A=0A# wpa_supplicant -B -i wlp0s29u1u2 -c /etc/wpa_sup= plicant/wpa_supplicant.conf =0ASuccessfully initialized wpa_supplicant=0A= =0A# dhclient -v wlp0s29u1u2=0AInternet Systems Consortium DHCP Client 4.= 4.1=0ACopyright 2004-2018 Internet Systems Consortium.=0AAll rights reser= ved.=0AFor info, please visit https://www.isc.org/software/dhcp/=0A=0ALis= tening on LPF/wlp0s29u1u2/xx:ii:xx:ii:xx:ii=0ASending on LPF/wlp0s29u1u= 2/xx:ii:xx:ii:xx:ii=0ASending on Socket/fallback=0ADHCPREQUEST for 192.= 168.1.68 on wlp0s29u1u2 to 255.255.255.255 port 67=0ADHCPACK of 192.168.1= .68 from 192.168.1.1=0ARTNETLINK answers: File exists=0Abound to 192.168.= 1.68 -- renewal in 9833 seconds.=0A=0A# ping gnu.org=0APING gnu.org (209.= 51.188.148): 56 data bytes=0A64 bytes from 209.51.188.148: icmp_seq=3D0 t= tl=3D54 time=3D163.508 ms=0A64 bytes from 209.51.188.148: icmp_seq=3D1 tt= l=3D54 time=3D156.208 ms=0A64 bytes from 209.51.188.148: icmp_seq=3D2 ttl= =3D54 time=3D160.967 ms=0A64 bytes from 209.51.188.148: icmp_seq=3D3 ttl= =3D54 time=3D159.798 ms=0A64 bytes from 209.51.188.148: icmp_seq=3D4 ttl= =3D54 time=3D159.590 ms=0A64 bytes from 209.51.188.148: icmp_seq=3D5 ttl= =3D54 time=3D155.737 ms=0A^C--- gnu.org ping statistics ---=0A6 packets t= ransmitted, 6 packets received, 0% packet loss=0Around-trip min/avg/max/s= tddev =3D 155.737/159.301/163.508/2.679 ms=0APING 3 (0.0.0.3): 56 data by= tes=0Aping: sending packet: Invalid argument=0A=0A=0A=0Athen I can add th= is configuration in my Guix config and reconfigure system.=0AI can change= the value of 'interface' to wlp0s29u1u2 insted of wlp2s0 as it is now in= 'wpa-supplicant-service-type' in 'operating system' in my config.scm=0A= =0A=0A# cat /etc/config.scm=0A...=0A(operating-system (host-name "antelop= e") (timezone "Europe/Moscow") (locale "en_US.utf8")=0A (bootloader (b= ootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))= )=0A (file-systems (cons (file-system (device "/dev/sda1") (mount-poin= t "/") (type "ext4")) %base-file-systems))=0A (swap-devices '("/dev/sd= a2"))=0A=0A (users (cons* (user-account (name "bob") (group "users")= =0A (supplementary-groups '("wheel" "netdev" "audio" "video"))= =0A (home-directory "/home/bob"))=0A (user-account (name "mo= m") (group "users")=0A (supplementary-groups '("wheel" "netdev"= "audio" "video"))=0A (home-directory "/home/mom"))=0A %base= -user-accounts))=0A=0A ;; This is where we specify system-wide package= s.=0A (packages (cons* nss-certs ;for HTTPS access=0A gvfs = ;for user mounts=0A wpa-supplicant=0A %base-packages))=0A=0A = (services (cons* =0A (service xfce-desktop-service-type)=0A = (service dhcp-client-service-type)=0A (service slim-service-ty= pe=0A (slim-configuration=0A ;;(auto-login? #t)=0A ;;(de= fault-user "g")=0A (xorg-configuration=0A (xorg-configuration=0A= (extra-config =0A '("Section \"InputClass\"=0AIdentifier \= "touchpad\"=0ADriver \"libinput\"=0AMatchIsTouchpad \"on\"=0AOption \"Tap= ping\" \"on\"=0AEndSection")=0A ))))=0A )=0A=0A (m= odify-services =0A (remove (lambda (service)=0A (member = (service-kind service)=0A (list ntp-service-type avahi-service-type = =0A bluetooth-service network-manager-service-type=0A = gdm-service-type)))=0A %desktop-services) ;end of remove lamb= da services=0A=0A (wpa-supplicant-service-type config =3D>=0A = (wpa-supplicant-configuration=0A (interface "wlp0s29u1u2"= )=0A (config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))= =0A=0A (elogind-service-type=0A c =3D> (elogind-configur= ation (handle-lid-switch 'ignore)))=0A ) ;;end of modify-services= =0A )) ;;end of services=0A=0A ;; Allow resolution of '.local' = host names with mDNS.=0A (name-service-switch %mdns-host-lookup-nss)= =0A=0A ;;blacklist ugly sound speaker, blacklist ideapad_laptop for pr= event soft blocking wlan=0A (kernel-arguments '("modprobe.blacklist=3D= pcspkr,snd_pcsp,bluetooth,ideapad_laptop"))=0A=0A ) ;;end of operating= -system=0A=0A=0A=0A=0AOk.=0AGood luck!=0A=0A=0A=0AFebruary 20, 2020 7:46 = AM, "Efraim Flashner" wrote:=0A=0A> This is the o= ne I bought:=0A> =0A> https://www.aliexpress.com/item/32660160220.html?sp= m=3Da2g0s.9042311.0.0.27424c4dfQNlEM=0A> =0A> On Thu, Feb 20, 2020 at 04:= 33:16AM +0000, znavko@disroot.org wrote:=0A> =0A>> Hello! I want to buy u= sb wifi-adapter for PC. I've discovered that RYF recommends only devices = from=0A>> abroad webshops, but I cannot order from there, cause there is = no guarantee their services are good=0A>> and clean (RYF certifies only d= evices but not vendors and their services, I know).=0A>> =0A>> I want to = buy in my city from Russian webshop. Please, let me know which device fro= m those I can=0A>> use under Guix:=0A>> https://www.dns-shop.ru/catalog/1= 7a9eac716404e77/adaptery-wi-fi=0A>> =0A>> There are no Atheros.=0A>> =0A>= > Only Asus, DEXP, Zyxel, Intel, TP-Link, D-Link, Tenda, Xiami.=0A>> =0A>= > Can I run something without any additional drivers compilations, just t= yping 'ifconfig wlp2s0 up &&=0A>> wpa_supplicant -B -i wlp2s0 -c w.conf &= & dhclient -v wlp2s0' ???=0A> =0A> --=0A> Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8=0A= > GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351=0A> Confi= dentiality cannot be guaranteed on emails sent or received unencrypted