Re: ath0 associated, wlan0 not associated

2016-11-05 Thread Kevin Oberman
On Sat, Nov 5, 2016 at 11:58 AM, George Mitchell 
wrote:

> On 11/05/16 13:00, George Mitchell wrote:
> > On 11/05/16 01:05, Adrian Chadd wrote:
> >> nope, sorry.  There's a lot of work in the -11 wifi stack and drivers.
> >>
> >>
> >> -a
> >>
> >> [...]
> >
> > Okay, I downloaded and installed 11.0-RELEASE on a spare slice, and
> > dmesg tells me the following (with regard to ath0):
> >
> >
> > ath0:  mem 0xf0a0-0xf0a7 irq 36 at
> > device 0.0 on pci2
> > ath0: WB335 2-ANT card detected
> > ath0: Bluetooth Antenna Diversity card detected
> > ath0: [HT] enabling HT modes
> > ath0: [HT] enabling short-GI in 20MHz mode
> > ath0: [HT] 1 stream STBC receive enabled
> > ath0: [HT] 1 RX streams; 1 TX streams
> > ath0: QCA9565 mac 704.1 RF5110 phy 2523.1
> > ath0: 2GHz radio: 0x; 5GHz radio: 0x
> >
> > But ifconfig tells me there is no "ath0" interface ... Does 11.0
> > handle wifi in some unfamiliar manner?  I put my usual wifi magic
> > into rc.conf:
> >
> > create_args_wlan0="country US"
> > ifconfig_wlan0="WPA DHCP"
> > wlans_ath0="wlan0"
> >
> > -- George
> >
> I forgot to copy my wpa_supplicant.conf over.  Now it works!  (I
> guess the invisible ath0 is just how 11.0 works?)  -- George


Yes, as you speculate, the 802.11 software had a major rework and only the
wlan interface is visible. It is due to this re-work that the changes to
the wireless drivers can't be reasonably back-ported to 10.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkober...@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Uppercase RE matching problems in FreeBSD 11

2016-11-05 Thread Greg Rivers
I happened to run an old script today that uses sed(1) to extract the 
system boot time from the kern.boottime sysctl MIB. On 11.0 this no longer 
works as expected:


$ sysctl kern.boottime
kern.boottime: { sec = 1478380714, usec = 145351 } Sat Nov  5 16:18:34 2016
$ sysctl kern.boottime | sed -e 's/.*\([A-Z].*\)$/\1/'
v  5 16:18:34 2016

sed passes over 'S' and 'N' until it hits 'v', which it considers 
uppercase apparently. This is with LANG=en_US.UTF-8. If I set LANG=C, it 
works as expected:


$ sysctl kern.boottime | LANG=C sed -e 's/.*\([A-Z].*\)$/\1/'
Nov  5 16:18:34 2016

Testing every lowercase character separately gives even more inconsistent 
results:


$ cat <
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
!

b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z

Here sed thinks every lowercase character except for 'a' is uppercase! 
This differs from the first test where sed did not think 'o' is uppercase. 
Again, the above behaves as expected with LANG=C.


Does anyone have any insight into this? This is likely to break a lot of 
existing code.


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


Re: ath0 associated, wlan0 not associated

2016-11-05 Thread George Mitchell
On 11/05/16 13:00, George Mitchell wrote:
> On 11/05/16 01:05, Adrian Chadd wrote:
>> nope, sorry.  There's a lot of work in the -11 wifi stack and drivers.
>>
>>
>> -a
>>
>> [...]
> 
> Okay, I downloaded and installed 11.0-RELEASE on a spare slice, and
> dmesg tells me the following (with regard to ath0):
> 
> 
> ath0:  mem 0xf0a0-0xf0a7 irq 36 at
> device 0.0 on pci2
> ath0: WB335 2-ANT card detected
> ath0: Bluetooth Antenna Diversity card detected
> ath0: [HT] enabling HT modes
> ath0: [HT] enabling short-GI in 20MHz mode
> ath0: [HT] 1 stream STBC receive enabled
> ath0: [HT] 1 RX streams; 1 TX streams
> ath0: QCA9565 mac 704.1 RF5110 phy 2523.1
> ath0: 2GHz radio: 0x; 5GHz radio: 0x
> 
> But ifconfig tells me there is no "ath0" interface ... Does 11.0
> handle wifi in some unfamiliar manner?  I put my usual wifi magic
> into rc.conf:
> 
> create_args_wlan0="country US"
> ifconfig_wlan0="WPA DHCP"
> wlans_ath0="wlan0"
> 
> -- George
> 
I forgot to copy my wpa_supplicant.conf over.  Now it works!  (I
guess the invisible ath0 is just how 11.0 works?)  -- George
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ath0 associated, wlan0 not associated

2016-11-05 Thread George Mitchell
On 11/05/16 01:05, Adrian Chadd wrote:
> nope, sorry.  There's a lot of work in the -11 wifi stack and drivers.
> 
> 
> -a
> 
> [...]

Okay, I downloaded and installed 11.0-RELEASE on a spare slice, and
dmesg tells me the following (with regard to ath0):


ath0:  mem 0xf0a0-0xf0a7 irq 36 at
device 0.0 on pci2
ath0: WB335 2-ANT card detected
ath0: Bluetooth Antenna Diversity card detected
ath0: [HT] enabling HT modes
ath0: [HT] enabling short-GI in 20MHz mode
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 RX streams; 1 TX streams
ath0: QCA9565 mac 704.1 RF5110 phy 2523.1
ath0: 2GHz radio: 0x; 5GHz radio: 0x

But ifconfig tells me there is no "ath0" interface ... Does 11.0
handle wifi in some unfamiliar manner?  I put my usual wifi magic
into rc.conf:

create_args_wlan0="country US"
ifconfig_wlan0="WPA DHCP"
wlans_ath0="wlan0"

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