Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Apr 2016 21:28:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-wireless@FreeBSD.org
Subject:   [Bug 208758] 'service netif restart' makes iwn useless until kldunload/load of if_iwn
Message-ID:  <bug-208758-21060-U6DW1FUWBz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-208758-21060@https.bugs.freebsd.org/bugzilla/>
References:  <bug-208758-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208758

Hiren Panchasara <hiren@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|'service netif restart' not |'service netif restart'
                   |sufficient for picking a    |makes iwn useless until
                   |new ssid                    |kldunload/load of if_iwn

--- Comment #1 from Hiren Panchasara <hiren@FreeBSD.org> ---
A few observations:
1) if a network/ssid goes away, iwn connects to the next available one with=
out
trouble.
2) wpa_cli reassoc - works perfectly as jhb suggested

Problem occurs when I start up my phone hotspot (which has higher priority =
in
wpa_supplicant.conf) and try to associate with it via 'service netif restar=
t'
as I used to.=20

Actually, after doing 'service netif restart' iwn doesn't associate with
anything. Which is the actual bug.

# ifconfig -v wlan0 list scan

returns nothing.

# ifconfig -v wlan0
wlan0: flags=3D8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether a0:88:b4:f1:65:78
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        ssid "" channel 1 (2412 MHz 11g) bssid 00:00:00:00:00:00
        regdomain 0 country US anywhere -ecm authmode WPA1+WPA2/802.11i -wps
        -tsn privacy MIXED deftxkey UNDEF powersavemode OFF powersavesleep =
100
        txpower 11 txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346
        bmiss 10
        11a     ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
        11b     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
        11g     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
        turboA  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
        turboG  ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
        sturbo  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
        11na    ucast NONE    mgmt 12 MCS  mcast 12 MCS  maxretry 6
        11ng    ucast NONE    mgmt  2 MCS  mcast  2 MCS  maxretry 6
        half    ucast NONE    mgmt  3 Mb/s mcast  3 Mb/s maxretry 6
        quarter ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
        scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
        roam:11a     rssi    7dBm rate 12 Mb/s
        roam:11b     rssi    7dBm rate  1 Mb/s
        roam:11g     rssi    7dBm rate  5 Mb/s
        roam:turboA  rssi    7dBm rate 12 Mb/s
        roam:turboG  rssi    7dBm rate 12 Mb/s
        roam:sturbo  rssi    7dBm rate 12 Mb/s
        roam:11na    rssi    7dBm  MCS  1=20=20=20=20
        roam:11ng    rssi    7dBm  MCS  1=20=20=20=20
        roam:half    rssi    7dBm rate  6 Mb/s
        roam:quarter rssi    7dBm rate  3 Mb/s
        -pureg protmode CTS ht htcompat ampdu ampdulimit 8k ampdudensity NA
        -amsdutx amsdurx shortgi htprotmode RTSCTS -puren -smps -rifs wme
        -burst -dwds roaming MANUAL bintval 0
        AC_BE cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm ack
              cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm
        AC_BK cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm ack
              cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm
        AC_VI cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm ack
              cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm
        AC_VO cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm ack
              cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm
        groups: wlan=20


Sometimes (not always) on 'service netif restart' iwn crashes:

ifa_maintain_loopback_route: deletion failed for interface lo0: 48
wlan0: Ethernet address: a0:88:b4:f1:65:78
iwn0: iwn_read_firmware: ucode rev=3D0x12a80601
iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      =3D "UNKNOWN" (0x00002776)
  program counter =3D 0x00008AD0
  source line     =3D 0x00000067
  error data      =3D 0x0901008000000002
  branch link     =3D 0x00008ABE00008ABE
  interrupt link  =3D 0x0000D6BE00000000
  time            =3D 26954
driver status:
  tx ring  0: qid=3D0  cur=3D0   queued=3D0=20=20
  tx ring  1: qid=3D1  cur=3D0   queued=3D0=20=20
  tx ring  2: qid=3D2  cur=3D0   queued=3D0=20=20
  tx ring  3: qid=3D3  cur=3D0   queued=3D0=20=20
  tx ring  4: qid=3D4  cur=3D0   queued=3D0=20=20
  tx ring  5: qid=3D5  cur=3D0   queued=3D0=20=20
  tx ring  6: qid=3D6  cur=3D0   queued=3D0=20=20
  tx ring  7: qid=3D7  cur=3D0   queued=3D0=20=20
  tx ring  8: qid=3D8  cur=3D0   queued=3D0=20=20
  tx ring  9: qid=3D9  cur=3D3   queued=3D0=20=20
  tx ring 10: qid=3D10 cur=3D0   queued=3D0=20=20
  tx ring 11: qid=3D11 cur=3D0   queued=3D0=20=20
  tx ring 12: qid=3D12 cur=3D0   queued=3D0=20=20
  tx ring 13: qid=3D13 cur=3D0   queued=3D0=20=20
  tx ring 14: qid=3D14 cur=3D0   queued=3D0=20=20
  tx ring 15: qid=3D15 cur=3D0   queued=3D0=20=20
  tx ring 16: qid=3D16 cur=3D0   queued=3D0=20=20
  tx ring 17: qid=3D17 cur=3D0   queued=3D0=20=20
  tx ring 18: qid=3D18 cur=3D0   queued=3D0=20=20
  tx ring 19: qid=3D19 cur=3D0   queued=3D0=20=20
  rx ring: cur=3D1
iwn0: iwn_panicked: controller panicked, iv_state =3D 0; restarting
iwn0: iwn5000_post_alive: could not configure WiMAX coexistence, error 35
iwn0: iwn_init_locked: could not initialize hardware, error 35

After this, only way to revive iwn is=20
# kldunload if_iwn; kldload if_iwn

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208758-21060-U6DW1FUWBz>