This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 1608223eb31c6afd68339f991019cc8c28206ff1
Author: wangchengdong <[email protected]>
AuthorDate: Mon Jan 19 10:18:16 2026 +0800

    drivers/xbee: remove nxsig_notification when signal support is disabled
    
    When all signals are disabled, nxsig_notification is not available and
    should not be invoked. Remove the call to avoid build and runtime issues
    in no-signal configurations.
    
    Signed-off-by: Chengdong Wang <[email protected]>
---
 drivers/wireless/ieee802154/xbee/xbee_netdev.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/wireless/ieee802154/xbee/xbee_netdev.c 
b/drivers/wireless/ieee802154/xbee/xbee_netdev.c
index 69fb6c619f0..3d37e2351c8 100644
--- a/drivers/wireless/ieee802154/xbee/xbee_netdev.c
+++ b/drivers/wireless/ieee802154/xbee/xbee_netdev.c
@@ -136,10 +136,12 @@ struct xbeenet_driver_s
 
   /* MAC Service notification information */
 
+#ifndef CONFIG_DISABLE_ALL_SIGNALS
   bool    xd_notify_registered;
   pid_t   xd_notify_pid;
   struct sigevent xd_notify_event;
   struct sigwork_s xd_notify_work;
+#endif
 };
 
 /****************************************************************************
@@ -410,12 +412,14 @@ static int xbeenet_notify(FAR struct xbee_maccb_s *maccb,
           nxsem_post(&priv->xd_eventsem);
         }
 
+#ifndef CONFIG_DISABLE_ALL_SIGNALS
       if (priv->xd_notify_registered)
         {
           priv->xd_notify_event.sigev_value.sival_int = primitive->type;
           nxsig_notification(priv->xd_notify_pid, &priv->xd_notify_event,
                              SI_QUEUE, &priv->xd_notify_work);
         }
+#endif
 
       nxmutex_unlock(&priv->xd_lock);
       return OK;
@@ -940,6 +944,7 @@ static int xbeenet_ioctl(FAR struct net_driver_s *dev, int 
cmd,
                *              appropriately.
                */
 
+#ifndef CONFIG_DISABLE_ALL_SIGNALS
               case MAC802154IOC_NOTIFY_REGISTER:
                 {
                   /* Save the notification events */
@@ -950,6 +955,7 @@ static int xbeenet_ioctl(FAR struct net_driver_s *dev, int 
cmd,
                   ret = OK;
                 }
                 break;
+#endif
 
               case MAC802154IOC_GET_EVENT:
                 {
@@ -1293,7 +1299,10 @@ int xbee_netdev_register(XBEEHANDLE xbee)
   sq_init(&priv->primitive_queue);
 
   priv->xd_enableevents = false;
+
+#ifndef CONFIG_DISABLE_ALL_SIGNALS
   priv->xd_notify_registered = false;
+#endif
 
   /* Initialize the XBee MAC callbacks */
 

Reply via email to