net: ieee802154: Fix the scan duration data type
Converting to k_timeout_t Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
053dcaa494
commit
00a8406d7f
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ static int ieee802154_scan(u32_t mgmt_request, struct net_if *iface,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Context aware sleep */
|
/* Context aware sleep */
|
||||||
k_sleep(scan->duration);
|
k_sleep(K_MSEC(scan->duration));
|
||||||
|
|
||||||
if (!ctx->scan_ctx) {
|
if (!ctx->scan_ctx) {
|
||||||
NET_DBG("Scan request cancelled");
|
NET_DBG("Scan request cancelled");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue