ieee802154: Minor renaming to align better with coding guidelines
This commit is contained in:
parent
5ca18999a5
commit
29e028f7ac
@ -1247,7 +1247,7 @@ struct ieee802154_orphan_resp_s
|
|||||||
|
|
||||||
struct ieee802154_reset_req_s
|
struct ieee802154_reset_req_s
|
||||||
{
|
{
|
||||||
bool rst_pibattr;
|
bool resetattr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
@ -223,11 +223,11 @@ int mac802154_req_gts(MACHANDLE mac, FAR struct ieee802154_gts_req_s *req);
|
|||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* mac - Handle to the MAC layer instance
|
* mac - Handle to the MAC layer instance
|
||||||
* rst_pibattr - Whether or not to reset the MAC PIB attributes to defaults
|
* reset_attr - Whether or not to reset the MAC PIB attributes to defaults
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int mac802154_req_reset(MACHANDLE mac, bool rst_pibattr);
|
int mac802154_req_reset(MACHANDLE mac, bool restattr);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: mac802154_req_rxenable
|
* Name: mac802154_req_rxenable
|
||||||
|
@ -124,7 +124,7 @@ int mac802154_ioctl(MACHANDLE mac, int cmd, unsigned long arg)
|
|||||||
break;
|
break;
|
||||||
case MAC802154IOC_MLME_RESET_REQUEST:
|
case MAC802154IOC_MLME_RESET_REQUEST:
|
||||||
{
|
{
|
||||||
ret = mac802154_req_reset(mac, macarg->resetreq.rst_pibattr);
|
ret = mac802154_req_reset(mac, macarg->resetreq.resetattr);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MAC802154IOC_MLME_RXENABLE_REQUEST:
|
case MAC802154IOC_MLME_RXENABLE_REQUEST:
|
||||||
|
@ -74,17 +74,17 @@
|
|||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* mac - Handle to the MAC layer instance
|
* mac - Handle to the MAC layer instance
|
||||||
* rst_pibattr - Whether or not to reset the MAC PIB attributes to defaults
|
* resetattr - Whether or not to reset the MAC PIB attributes to defaults
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int mac802154_req_reset(MACHANDLE mac, bool rst_pibattr)
|
int mac802154_req_reset(MACHANDLE mac, bool resetattr)
|
||||||
{
|
{
|
||||||
FAR struct ieee802154_privmac_s * priv =
|
FAR struct ieee802154_privmac_s * priv =
|
||||||
(FAR struct ieee802154_privmac_s *) mac;
|
(FAR struct ieee802154_privmac_s *) mac;
|
||||||
union ieee802154_attr_u attr;
|
union ieee802154_attr_u attr;
|
||||||
|
|
||||||
if (rst_pibattr)
|
if (resetattr)
|
||||||
{
|
{
|
||||||
priv->isassoc = false; /* Not associated with a PAN */
|
priv->isassoc = false; /* Not associated with a PAN */
|
||||||
priv->trackingbeacon = false; /* Not tracking beacon by default */
|
priv->trackingbeacon = false; /* Not tracking beacon by default */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user