Re: Atheros AR5B22 WLAN+Bluetooth support on FreeBSD

2019-04-12 Thread Adrian Chadd
Well, yeah, qualcomm developers did a lot of the linux ath9k/ath3k support
:)


-a
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: Atheros AR5B22 WLAN+Bluetooth support on FreeBSD

2019-04-12 Thread Alexey Dokuchaev
On Thu, Apr 11, 2019 at 02:23:50PM +, Alexey Dokuchaev wrote:
> On Thu, Apr 11, 2019 at 06:36:26AM -0700, Adrian Chadd wrote:
> > I have a tool to upload firmware -- github.com/erikarn/ath3k.
> > See if that helps!
> 
> Something's wrong:
> 
>   $ git clone https://github.com/erikarn/ath3k.git
>   $ cd ath3k/src/usr.bin/ath3k
>   $ make
>   $ usbconfig list | grep 0x0930
>   ugen2.2:  at usbus2 <...>
>   $ ./ath3kfw -D -d ugen2.2 -I
>   ath3kfw: opening dev 2.2
>   ath3k_get_state: libusb_control_transfer() failed: code=-4
>   main: ath3k_get_state() failed!

I've booted off Fedora 26 USB thumbdrive, to discover that everything
works (dualband WiFi, BT, devices can be discovered), so the hardware
is not faulty.

I've converted Linux' drivers/bluetooth/ath3k.c to libusb to obtain
rom_version and ref_clock of my card, so I know which firmware files
I need (just in case):

  # ./a.out
  get_state -> 1, state = 0xce
  get_version -> 20, rom_version = 0x1102, clock value = 40

I've then rebooted back into FreeBSD.  Apparently, this AR3012 hardware
if very fragile, it can be easily left in confused state and won't accept
further commands, "usbconfig reset" does not help.  To avoid this, it is
better run ./ath3kfw as root, after powercycling machine (to reset the
card).  This got me further:

ath3kfw: opening dev 2.2
main: state=0x0e
ROM version: 285343744, build version: 155, ram version: 155, ref clock=1
ath3k_init_firmware: loading ath3k-1.fw
ath3k_load_fwfile: file=/home/danfe/ath3k/share/firmware/ath3k/ath3k-1.fw,
size=246804
ath3k_load_fwfile: transferring 20 bytes, offset 4096
LIBUSB_FUNCTION: libusb_bulk_transfer enter
LIBUSB_FUNCTION: libusb_submit_transfer enter
LIBUSB_FUNCTION: libusb_submit_transfer leave 0
LIBUSB_FUNCTION: libusb_handle_events_timeout_completed enter
LIBUSB_FUNCTION: libusb10_handle_events_sub enter
LIBUSB_FUNCTION: libusb_handle_events_timeout_completed exit
LIBUSB_FUNCTION: libusb_handle_events_timeout_completed enter
LIBUSB_FUNCTION: libusb10_handle_events_sub enter
LIBUSB_TRANSFER: sync I/O done
LIBUSB_FUNCTION: libusb_handle_events_timeout_completed exit
LIBUSB_FUNCTION: libusb_bulk_transfer leave
ath3k_load_fwfile: transferring 4116 bytes, offset 4096
...
ath3k_load_fwfile: transferring 8212 bytes, offset 4096
...
ath3k_load_fwfile: transferring 12308 bytes, offset 4096
...
... (numbers go 16404, 20500, 24596, 28692, 32788, 36884, 40980, 45076 ...)
...
ath3k_load_fwfile: transferring 65556 bytes, offset 4096
LIBUSB_FUNCTION: libusb_bulk_transfer enter
LIBUSB_FUNCTION: libusb_submit_transfer enter
LIBUSB_FUNCTION: libusb_submit_transfer leave 0
LIBUSB_FUNCTION: libusb_handle_events_timeout_completed enter
LIBUSB_FUNCTION: libusb10_handle_events_sub enter
LIBUSB_TRANSFER: sync I/O done
LIBUSB_FUNCTION: libusb_handle_events_timeout_completed exit
LIBUSB_FUNCTION: libusb_bulk_transfer leave
Can't load firmware: err=Timeout, size=4096
ath3k_load_fwfile: transferring 65556 bytes, offset 4096

After that, ``hccontrol inquiry'' stops working at all (says "operation
timed out"), dmesg shows this:

ubt0: ubt_ctrl_write_callback:782: control transfer failed: USB_ERR_TIMEOUT
ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command
OGF=0x1, OCF=0x1. Timeout

./danfe

P.S.  Fedora is amazing (just as Ubuntu) on this laptop: everything works,
WMI multimedia keys, LCD brightness control, mic/speaker mute buttons, WiFi
and Bluetooth.  Under FreeBSD, only WiFi works from this list. :-(
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: TDMA Wireless status?

2019-04-12 Thread Stephen Patrick
Thanks Adrian,

We are interested in "long range outdoor" (10-20km) with high gain antennas.
Do you know "Mikrotik Nstreme/NV2" and "Ubiquity Airmax" ?
Those have framing/polling done in software - wrapped around the wireless
driver.
Is there equivalent developed in FreeBSD?

Best regards

Stephen


On Thu, 11 Apr 2019 at 20:52, Adrian Chadd  wrote:

> hi!
>
> I know that a lot of the 11ac chips do TDMA but the vendors keep the
> implementation and knobs close to their chest. We don't have any public
> APIs for it. Sorry :(
>
>
> -a
>
>
> On Thu, 11 Apr 2019 at 10:23, Stephen Patrick 
> wrote:
>
>> Dear sirs,
>>
>> Is this feature working for point-to-point, and point-to-multipoint long
>> range links?
>> 802.11ac chipsets/modes supported?
>>
>> Best regards
>>
>> Stephen
>>
>> --
>>
>> *Stephen Patrick*
>>
>> *Director*
>>
>> Wireless Excellence Limited
>> The Oxford Science Park
>> G6, Magdalen Centre, Robert Robinson Avenue
>> Oxford OX4 4GA -  United Kingdom
>>
>> CAUTION - This message is confidential and may contain privileged
>> information intended only for the use of the addressee named above. If you
>> are not the intended recipient of this message you are hereby notified
>> that
>> any use, dissemination, distribution or reproduction of this message is
>> prohibited. If you have received this message in error please notify
>> Wireless Excellence immediately. Any views expressed in this message are
>> those of the individual sender and may not necessarily reflect the views
>> of
>> Wireless Excellence Ltd.
>> ___
>> freebsd-wireless@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
>> To unsubscribe, send any mail to "
>> freebsd-wireless-unsubscr...@freebsd.org"
>>
>

-- 

*Stephen Patrick*

*Director*


Wireless Excellence Limited
The Oxford Science Park
G6, Magdalen Centre, Robert Robinson Avenue
Oxford OX4 4GA -  United Kingdom

Tel:   +44 (0) 870 4959169 Mob: +44 (0)7802 425581
Email:   step...@cablefree.net  Skype:  stephenjpatrick   Google:
cablefree.stephen

[image: Facebook]    [image: Linkedin]
   [image: RSS]
   [image: Youtube]
   [image: Flickr]
   [image: Twitter]


CAUTION - This message is confidential and may contain privileged
information intended only for the use of the addressee named above. If you
are not the intended recipient of this message you are hereby notified that
any use, dissemination, distribution or reproduction of this message is
prohibited. If you have received this message in error please notify
Wireless Excellence immediately. Any views expressed in this message are
those of the individual sender and may not necessarily reflect the views of
Wireless Excellence Ltd.
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"