Skip to content
  1. Jul 15, 2016
  2. Jul 14, 2016
  3. Jul 13, 2016
    • Johan Hedberg's avatar
      Bluetooth: Increment management interface revision · 87510973
      Johan Hedberg authored
      
      
      Increment the mgmt revision due to the recently added new
      reason code for the Disconnected event.
      
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      87510973
    • Szymon Janc's avatar
      Bluetooth: Add Authentication Failed reason to Disconnected Mgmt event · 160b9251
      Szymon Janc authored
      
      
      If link is disconnected due to Authentication Failure (PIN or Key
      Missing status) userspace will be notified about this with proper error
      code. Many LE profiles define "PIN or Key Missing" status as indication
      of remote lost bond so this allows userspace to take action on this.
      
      @ Device Connected: 88:63:DF:88:0E:83 (1) flags 0x0000
              02 01 1a 05 03 0a 18 0d 18 0b 09 48 65 61 72 74  ...........Heart
              20 52 61 74 65                                    Rate
      > HCI Event: Command Status (0x0f) plen 4
            LE Read Remote Used Features (0x08|0x0016) ncmd 1
              Status: Success (0x00)
      > ACL Data RX: Handle 3585 flags 0x02 dlen 11
            ATT: Read By Group Type Request (0x10) len 6
              Handle range: 0x0001-0xffff
              Attribute group type: Primary Service (0x2800)
      > HCI Event: LE Meta Event (0x3e) plen 12
            LE Read Remote Used Features (0x04)
              Status: Success (0x00)
              Handle: 3585
              Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
                LE Encryption
      < HCI Command: LE Start Encryption (0x08|0x0019) plen 28
              Handle: 3585
              Random number: 0x0000000000000000
              Encrypted diversifier: 0x0000
              Long term key: 26201cd479a0921b6f949f0b1fa8dc82
      > HCI Event: Command Status (0x0f) plen 4
            LE Start Encryption (0x08|0x0019) ncmd 1
              Status: Success (0x00)
      > HCI Event: Encryption Change (0x08) plen 4
              Status: PIN or Key Missing (0x06)
              Handle: 3585
              Encryption: Disabled (0x00)
      < HCI Command: Disconnect (0x01|0x0006) plen 3
              Handle: 3585
              Reason: Authentication Failure (0x05)
      > HCI Event: Command Status (0x0f) plen 4
            Disconnect (0x01|0x0006) ncmd 1
              Status: Success (0x00)
      > HCI Event: Disconnect Complete (0x05) plen 4
              Status: Success (0x00)
              Handle: 3585
              Reason: Connection Terminated By Local Host (0x16)
      @ Device Disconnected: 88:63:DF:88:0E:83 (1) reason 4
      
      @ Device Connected: C4:43:8F:A3:4D:83 (0) flags 0x0000
              08 09 4e 65 78 75 73 20 35                       ..Nexus 5
      > HCI Event: Command Status (0x0f) plen 4
            Authentication Requested (0x01|0x0011) ncmd 1
              Status: Success (0x00)
      > HCI Event: Link Key Request (0x17) plen 6
              Address: C4:43:8F:A3:4D:83 (LG Electronics)
      < HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
              Address: C4:43:8F:A3:4D:83 (LG Electronics)
              Link key: 080812e4aa97a863d11826f71f65a933
      > HCI Event: Command Complete (0x0e) plen 10
            Link Key Request Reply (0x01|0x000b) ncmd 1
              Status: Success (0x00)
              Address: C4:43:8F:A3:4D:83 (LG Electronics)
      > HCI Event: Auth Complete (0x06) plen 3
              Status: PIN or Key Missing (0x06)
              Handle: 75
      @ Authentication Failed: C4:43:8F:A3:4D:83 (0) status 0x05
      < HCI Command: Disconnect (0x01|0x0006) plen 3
              Handle: 75
              Reason: Remote User Terminated Connection (0x13)
      > HCI Event: Command Status (0x0f) plen 4
            Disconnect (0x01|0x0006) ncmd 1
              Status: Success (0x00)
      > HCI Event: Disconnect Complete (0x05) plen 4
              Status: Success (0x00)
              Handle: 75
              Reason: Connection Terminated By Local Host (0x16)
      @ Device Disconnected: C4:43:8F:A3:4D:83 (0) reason 4
      
      Signed-off-by: default avatarSzymon Janc <szymon.janc@codecoup.pl>
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      160b9251
    • Jiri Pirko's avatar
      mlxsw: core: Trace EMAD messages · b38a75d2
      Jiri Pirko authored
      
      
      Trace EMAD messages going down to HW and up from HW. Devlink needs to be
      registered before EMAD init so the trace function can be called
      with valid devlink handle.
      
      Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
      v1->v2:
      - Use trace_devlink_hwmsg directly
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b38a75d2
    • Jiri Pirko's avatar
      devlink: add hardware messages tracing facility · e5224f0f
      Jiri Pirko authored
      
      
      Define a tracepoint and allow user to trace messages going to and from
      hardware associated with devlink instance.
      
      Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
      Acked-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e5224f0f
    • Wei Yongjun's avatar
      net: dsa: Fix non static symbol warning · 85c22bad
      Wei Yongjun authored
      
      
      Fixes the following sparse warning:
      
      net/dsa/dsa2.c:680:6: warning:
       symbol '_dsa_unregister_switch' was not declared. Should it be static?
      
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      85c22bad
    • Wei Yongjun's avatar
      dwc_eth_qos: fix missing clk_disable_unprepare() on error in dwceqos_probe() · a6acf689
      Wei Yongjun authored
      
      
      Fix missing clk_disable_unprepare() call before return
      from dwceqos_probe() in the error handling case of invalid
      fixed-link.
      
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a6acf689
    • Wei Yongjun's avatar
      net: mediatek: fix non static symbol warnings · 379672de
      Wei Yongjun authored
      
      
      Fixes the following sparse warnings:
      
      drivers/net/ethernet/mediatek/mtk_eth_soc.c:79:5: warning:
       symbol '_mtk_mdio_write' was not declared. Should it be static?
      drivers/net/ethernet/mediatek/mtk_eth_soc.c:98:5: warning:
       symbol '_mtk_mdio_read' was not declared. Should it be static?
      
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      379672de
    • Wei Yongjun's avatar
      rxrpc: Fix error handling in af_rxrpc_init() · 8addc044
      Wei Yongjun authored
      
      
      security initialized after alloc workqueue, so we should exit security
      before destroy workqueue in the error handing.
      
      Fixes: 648af7fc ("rxrpc: Absorb the rxkad security module")
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8addc044