Mac Mini late 2009 BCM4321 issues :)

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Mac Mini late 2009 BCM4321 issues :)

Trev-2
1A, uname -a shows:

FreeBSD citadel.sentry.org 11.0-STABLE FreeBSD 11.0-STABLE #0 \
r314907M: Thu Mar  9 04:26:47 AEDT 2017 \
[hidden email]:/usr/obj/usr/src/sys/GENERIC  amd64


1B. dmesg shows:

siba_bwn0: <Broadcom BCM4321 802.11a/b/g/n Wireless> \
mem 0xd3200000-0xd3203fff at device 0.0 on pci3
siba_bwn0: warn: multiple PCI(E) cores
siba_bwn0: unsupported coreid (USB 1.1 Host)
bwn0 on siba_bwn0
bwn0: WLAN (chipid 0x4321 rev 12) PHY (analog 5 type 4 rev 2) \
RADIO (manuf 0x17f ver 0x2055 rev 4)
bwn0: DMA (64 bits)
bwn0: Note: compiled with BWN_GPL_PHY; includes GPLv2 code
bwn0: Using 1 MSI messages


2. wpa_supplicant.conf contains:

    network={
         ssid="WLAN24G"
         psk="my_password"
         }


3, wlan0 is created with:

ifconfig wlan0 create wlandev bwn0 wlanaddr 48:02:2a:63:4e:c1 \
inet 192.168.1.99 channel 3

Note: Unless I specify a wlanaddr then wlan0 is created with a mac
address of ff:ff:ff:ff:ff:ff


4. ifconfig wlan0 shows:

wlan0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
         ether 48:02:2a:63:4e:c1
         inet 192.168.1.99 netmask 0xffffff00 broadcast 192.168.1.255
         inet6 fe80::4a02:2aff:fe63:4ec1%wlan0 prefixlen 64 tentative
scopeid 0x3
         nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
         media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
         status: no carrier
         ssid "" channel 3 (2422 MHz 11g)
         regdomain FCC country US authmode OPEN privacy OFF txpower 30
bmiss 7
         scanvalid 60 protmode CTS wme
         groups: wlan


5. ifconfig wlan0 scan shows (among others):
SSID/MESH ID    BSSID              CHAN RATE    S:N     INT CAPS
WLAN24G         34:31:c4:bc:d0:21    3   54M  -77:-95   100 EPS  HTCAP
WME ATH RSN


5. wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant.conf produces:

wpa_supplicant v2.5
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver
'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=7):
      57 4c 41 4e 32 34 47                              WLAN24G
PSK (ASCII passphrase) - hexdump_ascii(len=16): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
    id=0 ssid='WLAN24G'
wpa_driver_bsd_capa: drivercaps=0x0581e801,cryptocaps=0x00000000
Add interface wlan0 to a new radio N/A
wlan0: Own MAC address: 48:02:2a:63:4e:c1
bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=0
bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=1
bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=2
bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=3
wpa_driver_bsd_set_countermeasures: enabled=0
wlan0: RSN: flushing PMKID list in the driver
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: dbcf9172-a2c4-5074-bfc2-05bfaecc535f
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x801ce4000
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x801ce4000 after 0.000012 second wait
wpa_driver_bsd_set_wpa: enabled=1
wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
wlan0: Event SCAN_RESULTS (3) received
Received 868 bytes of scan results (4 BSSes)
wlan0: BSS: Start scan result update 1
wlan0: BSS: Add new id 0 BSSID 48:02:2a:61:6a:24 SSID 'router-2' freq 2422
wlan0: BSS: Add new id 1 BSSID 48:02:2a:63:4e:c0 SSID 'router-3' freq 2422
wlan0: BSS: Add new id 2 BSSID 34:31:c4:bc:d0:21 SSID 'WLAN24G' freq 2422
wlan0: BSS: Add new id 3 BSSID 44:33:4c:b5:d3:68 SSID 'router-4' freq 2422
BSS: last_scan_res_used=4/32
wlan0: New scan results available (own=0 ext=0)
wlan0: Radio work 'scan'@0x801ce4000 done in 0.212149 seconds
wlan0: Selecting BSS from priority group 0
wlan0: 0: 48:02:2a:61:6a:24 ssid='router-2' wpa_ie_len=0 rsn_ie_len=20
caps=0x11 level=-66 freq=2422
wlan0:    skip - SSID mismatch
wlan0: 1: 48:02:2a:63:4e:c0 ssid='router-3' wpa_ie_len=0 rsn_ie_len=20
caps=0x11 level=-69 freq=2422
wlan0:    skip - SSID mismatch
wlan0: 2: 34:31:c4:bc:d0:21 ssid='WLAN24G' wpa_ie_len=0 rsn_ie_len=20
caps=0x31 level=-77 freq=2422
wlan0:    selected based on RSN IE
wlan0:    selected BSS 34:31:c4:bc:d0:21 ssid='WLAN24G'
wlan0: Considering connect request: reassociate: 0  selected:
34:31:c4:bc:d0:21  bssid: 00:00:00:00:00:00  pending: 00:00:00:00:00:00
wpa_state: SCANNING  ssid=0x801c45000  current_ssid=0x0
wlan0: Request association with 34:31:c4:bc:d0:21
wlan0: Add radio work 'connect'@0x801ce4000
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'connect'@0x801ce4000 after 0.000009 second wait
wlan0: Trying to associate with 34:31:c4:bc:d0:21 (SSID='WLAN24G'
freq=2422 MHz)
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
wlan0: Cancelling scan request
wlan0: WPA: clearing own WPA/RSN IE
wlan0: Automatic auth_alg selection: 0x1
RSN: PMKSA cache search - network_ctx=0x801c45000 try_opportunistic=0
RSN: Search for BSSID 34:31:c4:bc:d0:21
RSN: No PMKSA cache entry found
wlan0: RSN: using IEEE 802.11i/D9.0
wlan0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
wlan0: WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00
0f ac 04 01 00 00 0f ac 02 00 00
wlan0: WPA: using GTK CCMP
wlan0: WPA: using PTK CCMP
wlan0: WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04
01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
wlan0: State: SCANNING -> ASSOCIATING
Limit connection to BSSID 34:31:c4:bc:d0:21 freq=2422 MHz based on scan
results (bssid_set=0)
wpa_driver_bsd_associate: ssid 'WLAN24G' wpa ie len 22 pairwise 16 group
16 key mgmt 2
wpa_driver_bsd_set_drop_unencrypted: enabled=1
bsd_set_opt_ie: set WPA+RSN ie (len 22)
wpa_driver_bsd_associate: set PRIVACY 1
wlan0: Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
EAPOL: disable timer tick
wlan0: Authentication with 34:31:c4:bc:d0:21 timed out.
Added BSSID 34:31:c4:bc:d0:21 into blacklist
wlan0: WPA: Clear old PMK and PTK
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00
pending_bssid=34:31:c4:bc:d0:21 reason=3 state=ASSOCIATING
wlan0: Event DEAUTH (12) received
wlan0: Deauthentication notification
wlan0:  * reason 3 (locally generated)
Deauthentication frame IE(s) - hexdump(len=0): [NULL]
wlan0: CTRL-EVENT-DISCONNECTED bssid=34:31:c4:bc:d0:21 reason=3
locally_generated=1
wlan0: Auto connect enabled: try to reconnect (wps=0/0 wpa_state=5)
wlan0: Setting scan request: 0.100000 sec
wlan0: Radio work 'connect'@0x801ce4000 done in 10.022229 seconds
[etc]

and never manages to associate successfully.

Any ideas?

Thanks,
TREV.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Mac Mini late 2009 BCM4321 issues :)

Adrian Chadd-4
hiya,

CAn you try freebsd-head? I'm sure I fixed bwn enough to work in
freebsd-head. I don't know how things could've broken in freebsd-11
though!


-adrian


On 8 March 2017 at 22:55, Trev <[hidden email]> wrote:

> 1A, uname -a shows:
>
> FreeBSD citadel.sentry.org 11.0-STABLE FreeBSD 11.0-STABLE #0 \
> r314907M: Thu Mar  9 04:26:47 AEDT 2017 \
> [hidden email]:/usr/obj/usr/src/sys/GENERIC  amd64
>
>
> 1B. dmesg shows:
>
> siba_bwn0: <Broadcom BCM4321 802.11a/b/g/n Wireless> \
> mem 0xd3200000-0xd3203fff at device 0.0 on pci3
> siba_bwn0: warn: multiple PCI(E) cores
> siba_bwn0: unsupported coreid (USB 1.1 Host)
> bwn0 on siba_bwn0
> bwn0: WLAN (chipid 0x4321 rev 12) PHY (analog 5 type 4 rev 2) \
> RADIO (manuf 0x17f ver 0x2055 rev 4)
> bwn0: DMA (64 bits)
> bwn0: Note: compiled with BWN_GPL_PHY; includes GPLv2 code
> bwn0: Using 1 MSI messages
>
>
> 2. wpa_supplicant.conf contains:
>
>    network={
>         ssid="WLAN24G"
>         psk="my_password"
>         }
>
>
> 3, wlan0 is created with:
>
> ifconfig wlan0 create wlandev bwn0 wlanaddr 48:02:2a:63:4e:c1 \
> inet 192.168.1.99 channel 3
>
> Note: Unless I specify a wlanaddr then wlan0 is created with a mac address
> of ff:ff:ff:ff:ff:ff
>
>
> 4. ifconfig wlan0 shows:
>
> wlan0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         ether 48:02:2a:63:4e:c1
>         inet 192.168.1.99 netmask 0xffffff00 broadcast 192.168.1.255
>         inet6 fe80::4a02:2aff:fe63:4ec1%wlan0 prefixlen 64 tentative scopeid
> 0x3
>         nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>         media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>         status: no carrier
>         ssid "" channel 3 (2422 MHz 11g)
>         regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss
> 7
>         scanvalid 60 protmode CTS wme
>         groups: wlan
>
>
> 5. ifconfig wlan0 scan shows (among others):
> SSID/MESH ID    BSSID              CHAN RATE    S:N     INT CAPS
> WLAN24G         34:31:c4:bc:d0:21    3   54M  -77:-95   100 EPS  HTCAP WME
> ATH RSN
>
>
> 5. wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant.conf produces:
>
> wpa_supplicant v2.5
> Successfully initialized wpa_supplicant
> Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver
> 'default' ctrl_interface 'N/A' bridge 'N/A'
> Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
> Reading configuration file '/etc/wpa_supplicant.conf'
> Line: 5 - start of a new network block
> ssid - hexdump_ascii(len=7):
>      57 4c 41 4e 32 34 47                              WLAN24G
> PSK (ASCII passphrase) - hexdump_ascii(len=16): [REMOVED]
> PSK (from passphrase) - hexdump(len=32): [REMOVED]
> Priority group 0
>    id=0 ssid='WLAN24G'
> wpa_driver_bsd_capa: drivercaps=0x0581e801,cryptocaps=0x00000000
> Add interface wlan0 to a new radio N/A
> wlan0: Own MAC address: 48:02:2a:63:4e:c1
> bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
> bsd_del_key: key_idx=0
> bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
> bsd_del_key: key_idx=1
> bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
> bsd_del_key: key_idx=2
> bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
> bsd_del_key: key_idx=3
> wpa_driver_bsd_set_countermeasures: enabled=0
> wlan0: RSN: flushing PMKID list in the driver
> wlan0: Setting scan request: 0.100000 sec
> wlan0: WPS: UUID based on MAC address: dbcf9172-a2c4-5074-bfc2-05bfaecc535f
> ENGINE: Loading dynamic engine
> ENGINE: Loading dynamic engine
> EAPOL: SUPP_PAE entering state DISCONNECTED
> EAPOL: Supplicant port status: Unauthorized
> EAPOL: KEY_RX entering state NO_KEY_RECEIVE
> EAPOL: SUPP_BE entering state INITIALIZE
> EAP: EAP entering state DISABLED
> wlan0: Added interface wlan0
> wlan0: State: DISCONNECTED -> DISCONNECTED
> wlan0: State: DISCONNECTED -> SCANNING
> wlan0: Starting AP scan for wildcard SSID
> wlan0: Add radio work 'scan'@0x801ce4000
> wlan0: First radio work item in the queue - schedule start immediately
> wlan0: Starting radio work 'scan'@0x801ce4000 after 0.000012 second wait
> wpa_driver_bsd_set_wpa: enabled=1
> wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
> wlan0: Event SCAN_RESULTS (3) received
> Received 868 bytes of scan results (4 BSSes)
> wlan0: BSS: Start scan result update 1
> wlan0: BSS: Add new id 0 BSSID 48:02:2a:61:6a:24 SSID 'router-2' freq 2422
> wlan0: BSS: Add new id 1 BSSID 48:02:2a:63:4e:c0 SSID 'router-3' freq 2422
> wlan0: BSS: Add new id 2 BSSID 34:31:c4:bc:d0:21 SSID 'WLAN24G' freq 2422
> wlan0: BSS: Add new id 3 BSSID 44:33:4c:b5:d3:68 SSID 'router-4' freq 2422
> BSS: last_scan_res_used=4/32
> wlan0: New scan results available (own=0 ext=0)
> wlan0: Radio work 'scan'@0x801ce4000 done in 0.212149 seconds
> wlan0: Selecting BSS from priority group 0
> wlan0: 0: 48:02:2a:61:6a:24 ssid='router-2' wpa_ie_len=0 rsn_ie_len=20
> caps=0x11 level=-66 freq=2422
> wlan0:    skip - SSID mismatch
> wlan0: 1: 48:02:2a:63:4e:c0 ssid='router-3' wpa_ie_len=0 rsn_ie_len=20
> caps=0x11 level=-69 freq=2422
> wlan0:    skip - SSID mismatch
> wlan0: 2: 34:31:c4:bc:d0:21 ssid='WLAN24G' wpa_ie_len=0 rsn_ie_len=20
> caps=0x31 level=-77 freq=2422
> wlan0:    selected based on RSN IE
> wlan0:    selected BSS 34:31:c4:bc:d0:21 ssid='WLAN24G'
> wlan0: Considering connect request: reassociate: 0  selected:
> 34:31:c4:bc:d0:21  bssid: 00:00:00:00:00:00  pending: 00:00:00:00:00:00
> wpa_state: SCANNING  ssid=0x801c45000  current_ssid=0x0
> wlan0: Request association with 34:31:c4:bc:d0:21
> wlan0: Add radio work 'connect'@0x801ce4000
> wlan0: First radio work item in the queue - schedule start immediately
> wlan0: Starting radio work 'connect'@0x801ce4000 after 0.000009 second wait
> wlan0: Trying to associate with 34:31:c4:bc:d0:21 (SSID='WLAN24G' freq=2422
> MHz)
> FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
> wlan0: Cancelling scan request
> wlan0: WPA: clearing own WPA/RSN IE
> wlan0: Automatic auth_alg selection: 0x1
> RSN: PMKSA cache search - network_ctx=0x801c45000 try_opportunistic=0
> RSN: Search for BSSID 34:31:c4:bc:d0:21
> RSN: No PMKSA cache entry found
> wlan0: RSN: using IEEE 802.11i/D9.0
> wlan0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
> wlan0: WPA: clearing AP WPA IE
> WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac
> 04 01 00 00 0f ac 02 00 00
> wlan0: WPA: using GTK CCMP
> wlan0: WPA: using PTK CCMP
> wlan0: WPA: using KEY_MGMT WPA-PSK
> WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00
> 00 0f ac 04 01 00 00 0f ac 02 00 00
> wlan0: State: SCANNING -> ASSOCIATING
> Limit connection to BSSID 34:31:c4:bc:d0:21 freq=2422 MHz based on scan
> results (bssid_set=0)
> wpa_driver_bsd_associate: ssid 'WLAN24G' wpa ie len 22 pairwise 16 group 16
> key mgmt 2
> wpa_driver_bsd_set_drop_unencrypted: enabled=1
> bsd_set_opt_ie: set WPA+RSN ie (len 22)
> wpa_driver_bsd_associate: set PRIVACY 1
> wlan0: Setting authentication timeout: 10 sec 0 usec
> EAPOL: External notification - EAP success=0
> EAPOL: External notification - EAP fail=0
> EAPOL: External notification - portControl=Auto
> EAPOL: disable timer tick
> wlan0: Authentication with 34:31:c4:bc:d0:21 timed out.
> Added BSSID 34:31:c4:bc:d0:21 into blacklist
> wlan0: WPA: Clear old PMK and PTK
> wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00
> pending_bssid=34:31:c4:bc:d0:21 reason=3 state=ASSOCIATING
> wlan0: Event DEAUTH (12) received
> wlan0: Deauthentication notification
> wlan0:  * reason 3 (locally generated)
> Deauthentication frame IE(s) - hexdump(len=0): [NULL]
> wlan0: CTRL-EVENT-DISCONNECTED bssid=34:31:c4:bc:d0:21 reason=3
> locally_generated=1
> wlan0: Auto connect enabled: try to reconnect (wps=0/0 wpa_state=5)
> wlan0: Setting scan request: 0.100000 sec
> wlan0: Radio work 'connect'@0x801ce4000 done in 10.022229 seconds
> [etc]
>
> and never manages to associate successfully.
>
> Any ideas?
>
> Thanks,
> TREV.
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Mac Mini late 2009 BCM4321 issues :)

Trevor Roydhouse
In reply to this post by Trev-2
Never received your post Adrian - found it in the archives ... hence the
delay.

Trev wrote on 09/03/2017 17:55:
> 1A, uname -a shows:
>
> FreeBSD citadel.sentry.org 11.0-STABLE FreeBSD 11.0-STABLE #0 \
> r314907M: Thu Mar  9 04:26:47 AEDT 2017 \
> [hidden email]:/usr/obj/usr/src/sys/GENERIC  amd64

OK, as you suggested, I installed head as of yesterday (source upgrade
from 11-STABLE).

FreeBSD citadel.sentry.org 12.0-CURRENT FreeBSD 12.0-CURRENT #0
r315191M: Tue Mar 14 02:02:24 AEDT 2017

However, the result is the same. No successful association. It still
fails with:

> wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00
> pending_bssid=34:31:c4:bc:d0:21 reason=3 state=ASSOCIATING
> wlan0: Event DEAUTH (12) received
> wlan0: Deauthentication notification
> wlan0:  * reason 3 (locally generated)
> Deauthentication frame IE(s) - hexdump(len=0): [NULL]
> wlan0: CTRL-EVENT-DISCONNECTED bssid=34:31:c4:bc:d0:21 reason=3
> locally_generated=1

:(



smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Mac Mini late 2009 BCM4321 issues :)

Trev-2
In reply to this post by Trev-2
Never received your post Adrian - found it in the archives ... hence the
delay.

Trev wrote on 09/03/2017 17:55:
> 1A, uname -a shows:
>
> FreeBSD citadel.sentry.org 11.0-STABLE FreeBSD 11.0-STABLE #0 \
> r314907M: Thu Mar  9 04:26:47 AEDT 2017 \
> [hidden email]:/usr/obj/usr/src/sys/GENERIC  amd64

OK, as you suggested, I installed head as of yesterday (source upgrade
from 11-STABLE).

FreeBSD citadel.sentry.org 12.0-CURRENT FreeBSD 12.0-CURRENT #0
r315191M: Tue Mar 14 02:02:24 AEDT 2017

However, the result is the same. No successful association. It still
fails with:

> wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00
> pending_bssid=34:31:c4:bc:d0:21 reason=3 state=ASSOCIATING
> wlan0: Event DEAUTH (12) received
> wlan0: Deauthentication notification
> wlan0:  * reason 3 (locally generated)
> Deauthentication frame IE(s) - hexdump(len=0): [NULL]
> wlan0: CTRL-EVENT-DISCONNECTED bssid=34:31:c4:bc:d0:21 reason=3
> locally_generated=1

:(


_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Mac Mini late 2009 BCM4321 issues :)

Adrian Chadd-4
hiya,

sorry I don't know what else is going on right now. sorry :(


-a


On 2 April 2017 at 04:47, Trev <[hidden email]> wrote:

> Never received your post Adrian - found it in the archives ... hence the
> delay.
>
> Trev wrote on 09/03/2017 17:55:
>>
>> 1A, uname -a shows:
>>
>> FreeBSD citadel.sentry.org 11.0-STABLE FreeBSD 11.0-STABLE #0 \
>> r314907M: Thu Mar  9 04:26:47 AEDT 2017 \
>> [hidden email]:/usr/obj/usr/src/sys/GENERIC  amd64
>
>
> OK, as you suggested, I installed head as of yesterday (source upgrade from
> 11-STABLE).
>
> FreeBSD citadel.sentry.org 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r315191M:
> Tue Mar 14 02:02:24 AEDT 2017
>
> However, the result is the same. No successful association. It still fails
> with:
>
>> wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00
>> pending_bssid=34:31:c4:bc:d0:21 reason=3 state=ASSOCIATING
>> wlan0: Event DEAUTH (12) received
>> wlan0: Deauthentication notification
>> wlan0:  * reason 3 (locally generated)
>> Deauthentication frame IE(s) - hexdump(len=0): [NULL]
>> wlan0: CTRL-EVENT-DISCONNECTED bssid=34:31:c4:bc:d0:21 reason=3
>> locally_generated=1
>
>
> :(
>
>
>
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Mac Mini late 2009 BCM4321 issues :)

Trev-2
In reply to this post by Trev-2
Trev wrote on 09/03/2017 17:55:

> 1A, uname -a shows:
>
> FreeBSD citadel.sentry.org 11.0-STABLE FreeBSD 11.0-STABLE #0 \
> r314907M: Thu Mar  9 04:26:47 AEDT 2017 \
> [hidden email]:/usr/obj/usr/src/sys/GENERIC  amd64
>
>
> 1B. dmesg shows:
>
> siba_bwn0: <Broadcom BCM4321 802.11a/b/g/n Wireless> \
> mem 0xd3200000-0xd3203fff at device 0.0 on pci3
> siba_bwn0: warn: multiple PCI(E) cores
> siba_bwn0: unsupported coreid (USB 1.1 Host)
> bwn0 on siba_bwn0
> bwn0: WLAN (chipid 0x4321 rev 12) PHY (analog 5 type 4 rev 2) \
> RADIO (manuf 0x17f ver 0x2055 rev 4)
> bwn0: DMA (64 bits)
> bwn0: Note: compiled with BWN_GPL_PHY; includes GPLv2 code
> bwn0: Using 1 MSI messages
>
>
> 2. wpa_supplicant.conf contains:
>
>     network={
>          ssid="WLAN24G"
>          psk="my_password"
>          }
>
>
> 3, wlan0 is created with:
>
> ifconfig wlan0 create wlandev bwn0 wlanaddr 48:02:2a:63:4e:c1 \
> inet 192.168.1.99 channel 3
>
> Note: Unless I specify a wlanaddr then wlan0 is created with a mac
> address of ff:ff:ff:ff:ff:ff
>
>
> 4. ifconfig wlan0 shows:
>
> wlan0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
>          ether 48:02:2a:63:4e:c1
>          inet 192.168.1.99 netmask 0xffffff00 broadcast 192.168.1.255
>          inet6 fe80::4a02:2aff:fe63:4ec1%wlan0 prefixlen 64 tentative
> scopeid 0x3
>          nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>          media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>          status: no carrier
>          ssid "" channel 3 (2422 MHz 11g)
>          regdomain FCC country US authmode OPEN privacy OFF txpower 30
> bmiss 7
>          scanvalid 60 protmode CTS wme
>          groups: wlan
>
>
> 5. ifconfig wlan0 scan shows (among others):
> SSID/MESH ID    BSSID              CHAN RATE    S:N     INT CAPS
> WLAN24G         34:31:c4:bc:d0:21    3   54M  -77:-95   100 EPS  HTCAP
> WME ATH RSN
>
>
> 5. wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant.conf produces:
>
> wpa_supplicant v2.5
> Successfully initialized wpa_supplicant
> Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver
> 'default' ctrl_interface 'N/A' bridge 'N/A'
> Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
> Reading configuration file '/etc/wpa_supplicant.conf'
> Line: 5 - start of a new network block
> ssid - hexdump_ascii(len=7):
>       57 4c 41 4e 32 34 47                              WLAN24G
> PSK (ASCII passphrase) - hexdump_ascii(len=16): [REMOVED]
> PSK (from passphrase) - hexdump(len=32): [REMOVED]
> Priority group 0
>     id=0 ssid='WLAN24G'
> wpa_driver_bsd_capa: drivercaps=0x0581e801,cryptocaps=0x00000000
> Add interface wlan0 to a new radio N/A
> wlan0: Own MAC address: 48:02:2a:63:4e:c1
> bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
> bsd_del_key: key_idx=0
> bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
> bsd_del_key: key_idx=1
> bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
> bsd_del_key: key_idx=2
> bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
> bsd_del_key: key_idx=3
> wpa_driver_bsd_set_countermeasures: enabled=0
> wlan0: RSN: flushing PMKID list in the driver
> wlan0: Setting scan request: 0.100000 sec
> wlan0: WPS: UUID based on MAC address: dbcf9172-a2c4-5074-bfc2-05bfaecc535f
> ENGINE: Loading dynamic engine
> ENGINE: Loading dynamic engine
> EAPOL: SUPP_PAE entering state DISCONNECTED
> EAPOL: Supplicant port status: Unauthorized
> EAPOL: KEY_RX entering state NO_KEY_RECEIVE
> EAPOL: SUPP_BE entering state INITIALIZE
> EAP: EAP entering state DISABLED
> wlan0: Added interface wlan0
> wlan0: State: DISCONNECTED -> DISCONNECTED
> wlan0: State: DISCONNECTED -> SCANNING
> wlan0: Starting AP scan for wildcard SSID
> wlan0: Add radio work 'scan'@0x801ce4000
> wlan0: First radio work item in the queue - schedule start immediately
> wlan0: Starting radio work 'scan'@0x801ce4000 after 0.000012 second wait
> wpa_driver_bsd_set_wpa: enabled=1
> wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
> wlan0: Event SCAN_RESULTS (3) received
> Received 868 bytes of scan results (4 BSSes)
> wlan0: BSS: Start scan result update 1
> wlan0: BSS: Add new id 0 BSSID 48:02:2a:61:6a:24 SSID 'router-2' freq 2422
> wlan0: BSS: Add new id 1 BSSID 48:02:2a:63:4e:c0 SSID 'router-3' freq 2422
> wlan0: BSS: Add new id 2 BSSID 34:31:c4:bc:d0:21 SSID 'WLAN24G' freq 2422
> wlan0: BSS: Add new id 3 BSSID 44:33:4c:b5:d3:68 SSID 'router-4' freq 2422
> BSS: last_scan_res_used=4/32
> wlan0: New scan results available (own=0 ext=0)
> wlan0: Radio work 'scan'@0x801ce4000 done in 0.212149 seconds
> wlan0: Selecting BSS from priority group 0
> wlan0: 0: 48:02:2a:61:6a:24 ssid='router-2' wpa_ie_len=0 rsn_ie_len=20
> caps=0x11 level=-66 freq=2422
> wlan0:    skip - SSID mismatch
> wlan0: 1: 48:02:2a:63:4e:c0 ssid='router-3' wpa_ie_len=0 rsn_ie_len=20
> caps=0x11 level=-69 freq=2422
> wlan0:    skip - SSID mismatch
> wlan0: 2: 34:31:c4:bc:d0:21 ssid='WLAN24G' wpa_ie_len=0 rsn_ie_len=20
> caps=0x31 level=-77 freq=2422
> wlan0:    selected based on RSN IE
> wlan0:    selected BSS 34:31:c4:bc:d0:21 ssid='WLAN24G'
> wlan0: Considering connect request: reassociate: 0  selected:
> 34:31:c4:bc:d0:21  bssid: 00:00:00:00:00:00  pending: 00:00:00:00:00:00
> wpa_state: SCANNING  ssid=0x801c45000  current_ssid=0x0
> wlan0: Request association with 34:31:c4:bc:d0:21
> wlan0: Add radio work 'connect'@0x801ce4000
> wlan0: First radio work item in the queue - schedule start immediately
> wlan0: Starting radio work 'connect'@0x801ce4000 after 0.000009 second wait
> wlan0: Trying to associate with 34:31:c4:bc:d0:21 (SSID='WLAN24G'
> freq=2422 MHz)
> FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
> wlan0: Cancelling scan request
> wlan0: WPA: clearing own WPA/RSN IE
> wlan0: Automatic auth_alg selection: 0x1
> RSN: PMKSA cache search - network_ctx=0x801c45000 try_opportunistic=0
> RSN: Search for BSSID 34:31:c4:bc:d0:21
> RSN: No PMKSA cache entry found
> wlan0: RSN: using IEEE 802.11i/D9.0
> wlan0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
> wlan0: WPA: clearing AP WPA IE
> WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00
> 0f ac 04 01 00 00 0f ac 02 00 00
> wlan0: WPA: using GTK CCMP
> wlan0: WPA: using PTK CCMP
> wlan0: WPA: using KEY_MGMT WPA-PSK
> WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04
> 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
> wlan0: State: SCANNING -> ASSOCIATING
> Limit connection to BSSID 34:31:c4:bc:d0:21 freq=2422 MHz based on scan
> results (bssid_set=0)
> wpa_driver_bsd_associate: ssid 'WLAN24G' wpa ie len 22 pairwise 16 group
> 16 key mgmt 2
> wpa_driver_bsd_set_drop_unencrypted: enabled=1
> bsd_set_opt_ie: set WPA+RSN ie (len 22)
> wpa_driver_bsd_associate: set PRIVACY 1
> wlan0: Setting authentication timeout: 10 sec 0 usec
> EAPOL: External notification - EAP success=0
> EAPOL: External notification - EAP fail=0
> EAPOL: External notification - portControl=Auto
> EAPOL: disable timer tick
> wlan0: Authentication with 34:31:c4:bc:d0:21 timed out.
> Added BSSID 34:31:c4:bc:d0:21 into blacklist
> wlan0: WPA: Clear old PMK and PTK
> wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00
> pending_bssid=34:31:c4:bc:d0:21 reason=3 state=ASSOCIATING
> wlan0: Event DEAUTH (12) received
> wlan0: Deauthentication notification
> wlan0:  * reason 3 (locally generated)
> Deauthentication frame IE(s) - hexdump(len=0): [NULL]
> wlan0: CTRL-EVENT-DISCONNECTED bssid=34:31:c4:bc:d0:21 reason=3
> locally_generated=1
> wlan0: Auto connect enabled: try to reconnect (wps=0/0 wpa_state=5)
> wlan0: Setting scan request: 0.100000 sec
> wlan0: Radio work 'connect'@0x801ce4000 done in 10.022229 seconds
> [etc]
>
> and never manages to associate successfully.
>
> Any ideas?

As per Adrian's advice I updated to head via source (12.0-CURRENT #0
r315191M: Tue Mar 14 02:02:24 AEDT 2017)

However, the result was the same. No successful association.

Today I upgraded head via source to 12.0-CURRENT #0 r329009: Thu Feb  8
21:13:07 AEDT 2018 and I seem to be going backwards. The log file now shows:

Feb  9 11:32:40 citadel kernel: wlan0: Ethernet address: 00:26:b0:f7:a1:ec
Feb  9 11:32:40 citadel kernel: bwn0: ucode fw: ucode11
Feb  9 11:32:40 citadel kernel: bwn0: firmware version (rev 410 patch
2160 date 0x751a time 0x7c0a)
Feb  9 11:32:40 citadel kernel: bwn0: NVRAM variable txpid5ga0 unreadable: 2
Feb  9 11:32:40 citadel kernel: bwn0: PHY init failed
Feb  9 11:32:40 citadel kernel: bwn0: need multicast update callback
Feb  9 11:32:44 citadel kernel: bwn0: ucode fw: ucode11
Feb  9 11:32:45 citadel kernel: bwn0: firmware version (rev 410 patch
2160 date 0x751a time 0x7c0a)
Feb  9 11:32:45 citadel kernel: bwn0: NVRAM variable txpid5ga0 unreadable: 2
Feb  9 11:32:45 citadel kernel: bwn0: PHY init failed
Feb  9 11:33:32 citadel kernel: bwn0: ucode fw: ucode11
Feb  9 11:33:32 citadel kernel: bwn0: firmware version (rev 410 patch
2160 date 0x751a time 0x7c0a)
Feb  9 11:33:32 citadel kernel: bwn0: NVRAM variable txpid5ga0 unreadable: 2
Feb  9 11:33:32 citadel kernel: bwn0: PHY init failed

On the plus side, I no longer have to specify a MAC address as it is no
longer ff:ff:ff:ff:ff:ff  :-)

Any further ideas?

Thanks,
TREV.


_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Mac Mini late 2009 BCM4321 issues :)

Landon J Fuller
On Thu, Feb 8, 2018 at 5:45 PM, Trev <[hidden email]> wrote:

>
> As per Adrian's advice I updated to head via source (12.0-CURRENT #0
> r315191M: Tue Mar 14 02:02:24 AEDT 2017)
>
> However, the result was the same. No successful association.
>
> Today I upgraded head via source to 12.0-CURRENT #0 r329009: Thu Feb  
> 8
> 21:13:07 AEDT 2018 and I seem to be going backwards. The log file now
> shows:
>
> Feb  9 11:32:40 citadel kernel: wlan0: Ethernet address:
> 00:26:b0:f7:a1:ec
> Feb  9 11:32:40 citadel kernel: bwn0: ucode fw: ucode11
> Feb  9 11:32:40 citadel kernel: bwn0: firmware version (rev 410 patch
> 2160 date 0x751a time 0x7c0a)
> Feb  9 11:32:40 citadel kernel: bwn0: NVRAM variable txpid5ga0
> unreadable: 2
> Feb  9 11:32:40 citadel kernel: bwn0: PHY init failed
> Feb  9 11:32:40 citadel kernel: bwn0: need multicast update callback
> Feb  9 11:32:44 citadel kernel: bwn0: ucode fw: ucode11
> Feb  9 11:32:45 citadel kernel: bwn0: firmware version (rev 410 patch
> 2160 date 0x751a time 0x7c0a)
> Feb  9 11:32:45 citadel kernel: bwn0: NVRAM variable txpid5ga0
> unreadable: 2
> Feb  9 11:32:45 citadel kernel: bwn0: PHY init failed
> Feb  9 11:33:32 citadel kernel: bwn0: ucode fw: ucode11
> Feb  9 11:33:32 citadel kernel: bwn0: firmware version (rev 410 patch
> 2160 date 0x751a time 0x7c0a)
> Feb  9 11:33:32 citadel kernel: bwn0: NVRAM variable txpid5ga0
> unreadable: 2
> Feb  9 11:33:32 citadel kernel: bwn0: PHY init failed
>
> On the plus side, I no longer have to specify a MAC address as it is
> no
> longer ff:ff:ff:ff:ff:ff  :-)
>
> Any further ideas?
Hey Trev -

Would you mind applying the attached patch and giving it another try?

Thanks,
Landon




_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "[hidden email]"

0001_bcm4321_sromrev8.diff (570 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Mac Mini late 2009 BCM4321 issues :)

Trev-2
Landon J Fuller wrote on 13/02/2018 07:07:
> Hey Trev -
>
> Would you mind applying the attached patch and giving it another try?

Miracle worker! Thank you!


wlan0:
    flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 00:26:b0:f7:a1:ec
    inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
    inet6 fe80::226:b0ff:fef7:a1ec%wlan0 prefixlen 64 scopeid 0x3
    inet6 2400:4dc0:0:1a01:3631:c4dd:0:3 prefixlen 64
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11a
    status: associated
    ssid WLAN5G channel 36 (5180 MHz 11a) bssid 34:31:c4:bc:d0:22
    regdomain FCC country US authmode WPA2/802.11i privacy ON
    deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 17 bmiss 7
    mcastrate 6 mgmtrate 6 scanvalid 60 wme roaming MANUAL
    groups: wlan


It finally works :-)


dmesg:

Feb 13 12:38:19 citadel kernel: bwn_pci0: <Broadcom BCM4321 802.11n
Dual-Band Wireless> mem 0xd3200000-0xd3203fff irq 18 at device 0.0 on pci3
Feb 13 12:38:19 citadel kernel: bhndb0: <PCI-BHND bridge> on bwn_pci0
Feb 13 12:38:19 citadel kernel: bhndb0: Using MSI interrupts on bwn_pci0
Feb 13 12:38:19 citadel kernel: bhnd_nvram0: <SPROM/OTP> mem
0xd3201000-0xd3201fff on bhndb0
Feb 13 12:38:19 citadel kernel: bhnd0: <BCM4321 SIBA bus> on bhndb0
Feb 13 12:38:19 citadel kernel: bhnd_chipc0: <Broadcom ChipCommon I/O
Controller, rev 19> mem 0x18000000-0x18000dff,0x18000f00-0x18000fff,0x180
00e00-0x18000eff irq 0 at core 0 on bhnd0
Feb 13 12:38:19 citadel kernel: bhnd_pwrctl0: <ChipCommon Power Control>
on bhnd_chipc0
Feb 13 12:38:19 citadel kernel: gpio0: <Broadcom ChipCommon GPIO> mem
0x18000000-0x18000dff on bhnd_chipc0
Feb 13 12:38:19 citadel kernel: bhnd_hostb0: <Broadcom PCIe-G1 Host-PCI
bridge, rev 8> mem 0x18002000-0x18002dff,0-0x7ffffff,0-0x7fffffff,0x180
02f00-0x18002fff,0x18002e00-0x18002eff irq 2 at core 2 on bhnd0
Feb 13 12:38:19 citadel kernel: bwn0: <Broadcom 802.11 MAC/PHY/Radio,
rev 12> mem 0x18001000-0x18001dff,0x18001f00-0x18001fff,0x18001e00-0x1800
1eff irq 1 at core 1 on bhnd0
Feb 13 12:38:19 citadel kernel: bwn0: WLAN (BCM4321 rev 12) PHY (analog
5 type 4 rev 2) RADIO (manuf 0x17f ver 0x2055 rev 4)
Feb 13 12:38:19 citadel kernel: bwn0: DMA (64 bits)
Feb 13 12:38:19 citadel kernel: bwn0: Note: compiled with BWN_GPL_PHY;
includes GPLv2 code
...
Feb 13 12:38:19 citadel kernel: bwn0: ucode fw: ucode11
Feb 13 12:38:19 citadel kernel: bwn0: firmware version (rev 410 patch
2160 date 0x751a time 0x7c0a)
Feb 13 12:38:19 citadel kernel: bwn0: need multicast update callback
Feb 13 12:38:19 citadel kernel: bwn0: ucode fw: ucode11
Feb 13 12:38:19 citadel kernel: bwn0: firmware version (rev 410 patch
2160 date 0x751a time 0x7c0a)
Feb 13 12:38:19 citadel kernel: bwn0: MAC suspend failed
Feb 13 12:38:19 citadel kernel: uhub4: 3 ports with 0 removable, self
powered
Feb 13 12:38:19 citadel kernel: ugen0.2: <Apple Computer, Inc. IR
Receiver> at usbus0
Feb 13 12:38:19 citadel kernel: bwn0: ucode fw: ucode11
Feb 13 12:38:19 citadel kernel: bwn0: firmware version (rev 410 patch
2160 date 0x751a time 0x7c0a)
Feb 13 12:38:19 citadel kernel: wlan0: link state changed to UP
...
Feb 13 12:38:21 citadel kernel: bwn0: RX decryption attempted (old 0
keyidx 0x1)
Feb 13 12:38:52 citadel last message repeated 18 times
Feb 13 12:39:16 citadel last message repeated 31 times
[no more messages after this and some hours have passed]
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "[hidden email]"