From owner-freebsd-wireless@freebsd.org Tue Apr 23 19:46:52 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53A8D1580AF2 for ; Tue, 23 Apr 2019 19:46:52 +0000 (UTC) (envelope-from serge.a1@gmail.com) Received: from mail-it1-x12a.google.com (mail-it1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44E98886C6 for ; Tue, 23 Apr 2019 19:46:51 +0000 (UTC) (envelope-from serge.a1@gmail.com) Received: by mail-it1-x12a.google.com with SMTP id y10so2261010itc.1 for ; Tue, 23 Apr 2019 12:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xJV4gb9DiqBWaPvMbrahX+YL1120Ui4aaYM00JZZcGM=; b=fhQycs+y3kAldI7f/jGWc5d27pUBeqo9CgtcnwdySBHwG7uJFb22yZJTnB3oVvT24B WVqHYZXYdf/d+h/JcZFV8ejBw6SHFnhL6mlD3dDRm/mOdjJdfnDe2d3Gut3n51Xpd2ib ZxPB2jawDbkXPkw0G9hkLwQz0bAA0odR1HgxFIBRoOPwa9IvgSElcP22N0qryQ+5W97A DYvb3A7EBVPy9cVnpkTQmAXFcTJpvHzlJI5e1zNB16ECfNick3FuRIo15WgJH/tvu/C/ mIn1/niwwix8a61tiiS/Fi7jJ5wqqJA+MOgV84g45UxROnqspp67v2Haj5M9E1d69vOr sGpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xJV4gb9DiqBWaPvMbrahX+YL1120Ui4aaYM00JZZcGM=; b=bwL3WCSyQNSnphPZIrLwV+UF+unNAVxPCX6yZlCacAl5hZQn1zEYP46jPAMDDi+ZEh A/XEvV9E4aIswNVDnbd4g3mT7LNqbiBkd7riXjBuHWHUNWQbN0PleqK7fQiRBiKMBvdC 4H7KidQSuqShK7YGfARLaEIWEaY8kCYD1wuGXnU0x2BhWIBVlfSqCCdTk+4O0+0UfuNW IWwMjGUirrp9WGgMySUl6yDP1Kpg6H+dAf5SlkqoN8W2HiBIWrnscoef9EprW4YXg50b 7C2xbxYHUCA2N4CNbXf7seWPkV6hz2uKoIPaZEew8KF9WXzX5n56jJQGMbBuJrusb42m j2jA== X-Gm-Message-State: APjAAAWu/ZoXsolXynfDg1K0KUdJWElLORaiw2US7eeCB6Wz/grS2UBM SF9ski9T2Q5dJngVSpWJmx5bfkpBYIYqxygaaA== X-Google-Smtp-Source: APXvYqwi5WlmYtRFl7uwhaWk3KIIus9Xa41PeArJRM6iJ5MN+zh+uoKKDPNrOljwwkoEHarcUbTloJdbdtyaY+wokG0= X-Received: by 2002:a24:7294:: with SMTP id x142mr3357632itc.7.1556048810345; Tue, 23 Apr 2019 12:46:50 -0700 (PDT) MIME-Version: 1.0 References: <20190421071938.GA59008@c720-r342378> In-Reply-To: From: Serge Semenenko Date: Tue, 23 Apr 2019 22:46:22 +0300 Message-ID: Subject: Re: Atheros AR5B22 WLAN+Bluetooth support on FreeBSD To: Adrian Chadd Cc: Matthias Apitz , "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: 44E98886C6 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=fhQycs+y; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sergea1@gmail.com designates 2607:f8b0:4864:20::12a as permitted sender) smtp.mailfrom=sergea1@gmail.com X-Spamd-Result: default: False [-6.71 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.91)[-0.913,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[a.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.78)[ip: (-8.45), ipnet: 2607:f8b0::/32(-3.14), asn: 15169(-2.27), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2019 19:46:52 -0000 in /boot/device.hints I have hint.ath.0.btcoex_profile=3D"wb222" it seems working kernel: ar9300_hw_attach: ar9300_eeprom_attach returned 0 kernel: ath0: Enabling WB222 BTCOEX kernel: ath0: [HT] enabling HT modes kernel: ath0: [HT] enabling short-GI in 20MHz mode kernel: ath0: [HT] 1 stream STBC receive enabled kernel: ath0: [HT] 1 stream STBC transmit enabled kernel: ath0: [HT] LDPC transmit/receive enabled kernel: ath0: [HT] 2 RX streams; 2 TX streams kernel: ath0: AR9460 mac 640.3 RF5110 phy 3856.0 kernel: ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 kernel: [ath] loaded =D0=B2=D1=82, 23 =D0=B0=D0=BF=D1=80. 2019 =D0=B3. =D0=B2 22:39, Adrian Chad= d : > Do you have the kernel environment variable setup to say it's a WB222? > > > -a > > > On Tue, 23 Apr 2019 at 12:37, Serge Semenenko wrote: > >> Could it matter that I load modules from rc.conf? >> >> kld_list=3D"if_ath if_ath_pci linux linsysfs linprocfs xhci umass ums >> snd_hda /boot/modules/i915kms.ko /boot/modules/acpi_call.ko" >> >> =D0=B2=D1=81, 21 =D0=B0=D0=BF=D1=80. 2019 =D0=B3. =D0=B2 11:05, Matthias= Apitz : >> >>> El d=C3=ADa s=C3=A1bado, abril 20, 2019 a las 02:16:49p. m. +0300, Serg= e Semenenko >>> escribi=C3=B3: >>> >>> > Hi >>> > >>> > It works for me with such section in devd.conf >>> > >>> > attach 200 { >>> > device-name "ubt[0-9]+"; >>> > match "vendor" "0x0cf3"; >>> > match "product" "0xe006"; >>> > action "sleep 2 && /usr/sbin/ath3kfw -d $ugen && sleep 2 && >>> /etc/rc.d/bluetooth quietstart $device-name"; >>> > }; >>> >>> I have added the above lines to /etc/devd.conf, ofc with the vendor and >>> product ID of my chip: >>> >>> $ usbconfig >>> ... >>> ugen0.3: at usbus0, cfg=3D0 md=3DHOST >>> spd=3DFULL (12Mbps) pwr=3DON (100mA) >>> >>> and place the firmware in the directory where /usr/sbin/ath3kfw is >>> looking for it, into /usr/share/firmware/ath3k/ar3k/ >>> >>> The problem remains: no device /dev/ubt0 gets created (and the attach >>> rule does not apply. >>> >>> When I change 'attach 200' to 'notify 100', /usr/sbin/ath3kfw gets >>> called and the firmware gets loaded into the chip. But nothing of BT >>> does work. >>> >>> I think some of the nd_*.ko modules do not attach and due to this the >>> device is not created. >>> >>> matthias >>> >>> -- >>> Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ >>> +49-176-38902045 >>> Public GnuPG key: http://www.unixarea.de/key.pub >>> N =E2=82=AC I N zur EU! >>> "Gegen das EU-Europa der Banken, Konzerne und Kriegstreiber. >>> F=C3=BCr ein soziales und friedliches Europa der V=C3=B6lker." DKP >>> >>