Skip to content
GitLab
Explore
Sign in
f4grx
NuttX RTOS
Compare revisions
89be27cafa0ab166f6d8514826f1196770370bd6 to 80ec46a69edec4a46a00ff323800f81b736454a5
Hide whitespace changes
Inline
Side-by-side
wireless/ieee802154/mac802154_netdev.c
View file @
80ec46a6
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
* Private Types
* Private Types
****************************************************************************/
****************************************************************************/
/* This is our private version of the MAC callback stucture */
/* This is our private version of the MAC callback st
r
ucture */
struct
macnet_callback_s
struct
macnet_callback_s
{
{
...
@@ -1170,12 +1170,12 @@ static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd,
...
@@ -1170,12 +1170,12 @@ static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd,
* Calculate the MAC header length given the frame meta-data.
* Calculate the MAC header length given the frame meta-data.
*
*
* Input Parameters:
* Input Parameters:
* netdev - The network
d
device that will mediate the MAC interface
* netdev - The network device that will mediate the MAC interface
* meta - Obfuscated metadata structure needed to create the radio
* meta - Obfuscated metadata structure needed to create the radio
* MAC header
* MAC header
*
*
* Returned Value:
* Returned Value:
* A non-negative MAC heade
e
r length is returned on success; a negated
* A non-negative MAC header length is returned on success; a negated
* errno value is returned on any failure.
* errno value is returned on any failure.
*
*
****************************************************************************/
****************************************************************************/
...
@@ -1199,7 +1199,7 @@ static int macnet_get_mhrlen(FAR struct radio_driver_s *netdev,
...
@@ -1199,7 +1199,7 @@ static int macnet_get_mhrlen(FAR struct radio_driver_s *netdev,
* Requests the transfer of a list of frames to the MAC.
* Requests the transfer of a list of frames to the MAC.
*
*
* Input Parameters:
* Input Parameters:
* netdev - The network
d
device that will mediate the MAC interface
* netdev - The network device that will mediate the MAC interface
* meta - Obfuscated metadata structure needed to create the radio
* meta - Obfuscated metadata structure needed to create the radio
* MAC header
* MAC header
* framelist - Head of a list of frames to be transferred.
* framelist - Head of a list of frames to be transferred.
...
@@ -1282,7 +1282,7 @@ static int macnet_req_data(FAR struct radio_driver_s *netdev,
...
@@ -1282,7 +1282,7 @@ static int macnet_req_data(FAR struct radio_driver_s *netdev,
*
*
* Input Parameters:
* Input Parameters:
* netdev - The network device to be queried
* netdev - The network device to be queried
* properties - Location where radio proper
i
ties will be returned.
* properties - Location where radio properties will be returned.
*
*
* Returned Value:
* Returned Value:
* Zero (OK) returned on success; a negated errno value is returned on
* Zero (OK) returned on success; a negated errno value is returned on
...
@@ -1419,7 +1419,7 @@ int mac802154netdev_register(MACHANDLE mac)
...
@@ -1419,7 +1419,7 @@ int mac802154netdev_register(MACHANDLE mac)
radio
->
r_get_mhrlen
=
macnet_get_mhrlen
;
/* Get MAC header length */
radio
->
r_get_mhrlen
=
macnet_get_mhrlen
;
/* Get MAC header length */
radio
->
r_req_data
=
macnet_req_data
;
/* Enqueue frame for transmission */
radio
->
r_req_data
=
macnet_req_data
;
/* Enqueue frame for transmission */
radio
->
r_properties
=
macnet_properties
;
/* Return radio properies */
radio
->
r_properties
=
macnet_properties
;
/* Return radio proper
t
ies */
/* Initialize fields related to MAC event handling */
/* Initialize fields related to MAC event handling */
...
...
Prev
1
2
3
4
5
Next