diff --git a/wireless/ieee802154/mac802154.c b/wireless/ieee802154/mac802154.c index 738eb47f30..54daa38195 100644 --- a/wireless/ieee802154/mac802154.c +++ b/wireless/ieee802154/mac802154.c @@ -1482,7 +1482,11 @@ int mac802154_req_data(MACHANDLE mac, priv->radio->ops->txnotify_csma(priv->radio); - sem_wait(&trans.sem); + ret = sem_wait(&trans.sem); + if (ret < 0) + { + return -EINTR; + } } }