1. 06 Apr, 2021 5 commits
  2. 26 Mar, 2021 1 commit
    • Eugeniy Paltsev's avatar
      linker-defs: Fix sorting order of objects by priority · 6c2ae13e
      Eugeniy Paltsev authored
      Commit 0a7b65ef
      
       tweaked the CREATE_OBJ_LEVEL macro in such a way
      that it would break the expected sorting order.
      
      For example if you had 2, 19, 20, 30 as the level, we'd end up sort
      these to be 19, 2, 20, 30.
      
      Fix this by adding aditional "_" symbol after the init level counter.
      That allows to keep correct sort order (for both GNU and MWDT
      toolchains) and distinguish init level counter from section suffix
      (for MWDT toolchain).
      
      Fixes zephyrproject-rtos#33464
      Signed-off-by: default avatarEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      6c2ae13e
  3. 22 Mar, 2021 2 commits
  4. 19 Mar, 2021 1 commit
    • Vinayak Kariappa Chettimada's avatar
      Bluetooth: controller: Fix regression in ctrl tx queue handling · 0249a626
      Vinayak Kariappa Chettimada authored
      Fix control Tx buffer leak into data Tx pool that happens
      after a cross-over control procedure response was paused due
      to currently active encryption setup procedure, and a new
      control Tx PDU in addition to the paused one is enqueued
      thereafter.
      
      When the control tx PDUs is resumed but not yet enqueued
      towards the radio, if there is a new control Tx PDU enqueued
      then the paused control Tx PDU is not set as the head of the
      control PDUs in the Tx queue. This caused the paused control
      Tx PDU to be associated with data Tx pool, hence causing the
      incorrect release into data Tx pool.
      
      Relates to the commit bff76b4c ("Bluetooth: controller:
      split: Fix control tx queue handling") and to the
      commit 6991d099
      
       ("Bluetooth: controller: Fix control tx
      queue handling").
      
      Fixes #32898.
      Signed-off-by: default avatarVinayak Kariappa Chettimada <vich@nordicsemi.no>
      0249a626
  5. 18 Mar, 2021 5 commits
  6. 16 Mar, 2021 1 commit
  7. 24 Feb, 2021 2 commits
    • Erwan Gouriou's avatar
      samples/driver: watchdog: wwdg sample should run with west · 6cf2fdc5
      Erwan Gouriou authored
      
      A different configuration is applied when running this test
      using west or using twister.
      Both will use the disco_l475_iot1 overlay, but the extra config
      for clock bus tunning is applied only when using twister and
      samples is failed when run with west.
      Move this extra config from sample.yaml to board .conf file so
      it is applied in both cases.
      
      Fixes #32376
      Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
      6cf2fdc5
    • Jukka Rissanen's avatar
      net: mgmt: Use proper coop thread priority value · 343a26d1
      Jukka Rissanen authored
      
      If user sets CONFIG_NUM_PREEMPT_PRIORITIES=0, then the priority
      of the net_mgmt thread will be -1 which is the same as idle thread.
      This will trigger assert in kernel as then the minimum coop priority
      is -2 in this case. Remove the net_mgmt thread priority setting from
      Kconfig file as it is low value and set the coop thread priority
      the same way as other network threads are doing it.
      
      Fixes #32375
      Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
      343a26d1
  8. 19 Feb, 2021 20 commits
  9. 17 Feb, 2021 3 commits
    • Johann Fischer's avatar
      usb: bluetooth: fix OUT buffer handling · af67c16b
      Johann Fischer authored
      
      acl_read_cb does not handle incoming (ACL) data
      if BT_CTLR_TX_BUFFER_SIZE is greater than
      USB_MAX_FS_BULK_MPS - BT_HCI_ACL_HDR_SIZE.
      
      Since the host adjusts the data according to
      the BT_CTLR_TX_BUFFER_SIZE and does not use ZLP
      we cannot start usb_transfer over the possible length of
      the whole packet, with or without USB_TRANS_NO_ZLP flag.
      But we can read the packet length from the header and
      call net_buf_put() when the whole packet is received.
      
      Fixes: #31922
      Reported-by: default avatarMatias Karhumaa <matias.karhumaa@gmail.com>
      Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
      af67c16b
    • Andy Ross's avatar
      lib/p4wq: Fix race with completed work items · 46d95a23
      Andy Ross authored
      
      Work items can be legally resubmitted from within their own handler.
      Currently the p4wq detects this case by checking their thread field to
      see if it's been set to NULL.  But that's a race, because if the item
      was NOT resubmitted then it no longer belongs to the queue and may
      have been freed or reused or otherwise clobbered legally by user code.
      
      Instead, steal a single bit in the thread struct for this purpose.
      This patch adds a K_CALLBACK_STATE bit in user_options and documents
      it in such a way (as being intended for "callback manager" utilities)
      that it can't be used recursively or otherwise collide.
      
      Fixes #32052
      Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
      46d95a23
    • Marcin Niestroj's avatar
      drivers: wifi: esp: fix hostname configuration · 3de4ba01
      Marcin Niestroj authored
      By the time hostname configuration was implemented, driver was switching
      only between STA and STA+AP modes. After dynamic selection between NONE,
      STA, AP and STA+AP was implemented (commit referenced below), hostname
      configuration no longer takes effect when ESP chip obtains address over
      DHCP (and sends hostname in the DHCP request).
      
      Set hostname each time after enabling STA mode, so that it takes effect
      in DHCP requests.
      
      Fixes: 03ce6100
      
       ("drivers: wifi: esp: control CWMODE depending on
        current needs")
      Signed-off-by: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
      3de4ba01