mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
wireless: fix nxstyle errors
Fix nxstyle errors to pass CI Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
committed by
David Sidrane
parent
f59814e7d7
commit
911bc68833
@@ -58,6 +58,14 @@
|
|||||||
* Public Data Types
|
* Public Data Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define EXTERN extern "C"
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#else
|
||||||
|
#define EXTERN extern
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Callback operations to notify the next highest layer of various
|
/* Callback operations to notify the next highest layer of various
|
||||||
* asynchronous events, usually triggered by some previous request or
|
* asynchronous events, usually triggered by some previous request or
|
||||||
* response invoked by the upper layer.
|
* response invoked by the upper layer.
|
||||||
@@ -68,15 +76,16 @@ struct mac802154_maccb_s
|
|||||||
FAR struct mac802154_maccb_s *flink; /* Implements a singly linked list */
|
FAR struct mac802154_maccb_s *flink; /* Implements a singly linked list */
|
||||||
uint8_t prio; /* RX frame callback priority */
|
uint8_t prio; /* RX frame callback priority */
|
||||||
|
|
||||||
/* Callback for various MLME or MCPS service events. Return value represents
|
/* Callback for various MLME or MCPS service events.
|
||||||
* whether the callback accepts the primitive. >= 0 means the callback has
|
* Return value represents whether the callback accepts the primitive.
|
||||||
* accepted the primitive and is responsible for calling
|
* >= 0 means the callback has accepted the primitive and is responsible
|
||||||
* ieee802154_primitive_free(). In the case of DATA.indication primitive, only
|
* for calling ieee802154_primitive_free(). In the case of DATA.indication
|
||||||
* one callback can accept the frame. The callbacks are stored in order of
|
* primitive, only one callback can accept the frame. The callbacks are
|
||||||
* receiver priority defined by the 'prio' field above. All other
|
* stored in order of receiver priority defined by the 'prio' field above.
|
||||||
* notifications are offered to all callbacks and all can accept and free
|
* All other notifications are offered to all callbacks and all can accept
|
||||||
* separately since the primitive will not be freed until the nclients count
|
* and free separately since the primitive will not be freed until the
|
||||||
* reaches 0. */
|
* nclients count reaches 0.
|
||||||
|
*/
|
||||||
|
|
||||||
CODE int (*notify)(FAR struct mac802154_maccb_s *maccb,
|
CODE int (*notify)(FAR struct mac802154_maccb_s *maccb,
|
||||||
FAR struct ieee802154_primitive_s *primitive);
|
FAR struct ieee802154_primitive_s *primitive);
|
||||||
@@ -88,7 +97,7 @@ struct mac802154_maccb_s
|
|||||||
|
|
||||||
struct iob_s; /* Forward reference */
|
struct iob_s; /* Forward reference */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: mac802154_bind
|
* Name: mac802154_bind
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -223,9 +232,9 @@ int mac802154_req_gts(MACHANDLE mac, FAR struct ieee802154_gts_req_s *req);
|
|||||||
*
|
*
|
||||||
* NOTE: The standard specifies that confirmation should be provided via
|
* NOTE: The standard specifies that confirmation should be provided via
|
||||||
* via the asynchronous MLME-RESET.confirm primitive. However, in our
|
* via the asynchronous MLME-RESET.confirm primitive. However, in our
|
||||||
* implementation we synchronously return the value immediately. Therefore,
|
* implementation we synchronously return the value immediately.
|
||||||
* we merge the functionality of the MLME-RESET.request and MLME-RESET.confirm
|
* Therefore, we merge the functionality of the MLME-RESET.request and
|
||||||
* primitives together.
|
* MLME-RESET.confirm primitives together.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* mac - Handle to the MAC layer instance
|
* mac - Handle to the MAC layer instance
|
||||||
@@ -275,8 +284,8 @@ int mac802154_req_scan(MACHANDLE mac, FAR struct ieee802154_scan_req_s *req);
|
|||||||
*
|
*
|
||||||
* NOTE: The standard specifies that the attribute value should be returned
|
* NOTE: The standard specifies that the attribute value should be returned
|
||||||
* via the asynchronous MLME-GET.confirm primitive. However, in our
|
* via the asynchronous MLME-GET.confirm primitive. However, in our
|
||||||
* implementation, we synchronously return the value immediately.Therefore, we
|
* implementation, we synchronously return the value immediately.Therefore,
|
||||||
* merge the functionality of the MLME-GET.request and MLME-GET.confirm
|
* we merge the functionality of the MLME-GET.request and MLME-GET.confirm
|
||||||
* primitives together.
|
* primitives together.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -292,10 +301,11 @@ int mac802154_req_get(MACHANDLE mac, enum ieee802154_attr_e ,
|
|||||||
* indicated MAC PIB attribute.
|
* indicated MAC PIB attribute.
|
||||||
*
|
*
|
||||||
* NOTE: The standard specifies that confirmation should be indicated via
|
* NOTE: The standard specifies that confirmation should be indicated via
|
||||||
* the asynchronous MLME-SET.confirm primitive. However, in our implementation
|
* the asynchronous MLME-SET.confirm primitive.
|
||||||
* we synchronously return the status from the request. Therefore, we do merge
|
* However, in our implementation we synchronously return the status from
|
||||||
* the functionality of the MLME-SET.request and MLME-SET.confirm primitives
|
* the request.
|
||||||
* together.
|
* Therefore, we do merge the functionality of the MLME-SET.request and
|
||||||
|
* MLME-SET.confirm primitives together.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@@ -312,7 +322,8 @@ int mac802154_req_set(MACHANDLE mac, enum ieee802154_attr_e ,
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int mac802154_req_start(MACHANDLE mac, FAR struct ieee802154_start_req_s *req);
|
int mac802154_req_start(MACHANDLE mac,
|
||||||
|
FAR struct ieee802154_start_req_s *req);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: mac802154_req_sync
|
* Name: mac802154_req_sync
|
||||||
|
|||||||
Reference in New Issue
Block a user