Rime sniffers must be called for all transmissions, even if they failed, to get energy attribution right. This means that rime output sniffers now also must take the MAC transmission status as an argument.
This commit is contained in:
parent
cae8ef206a
commit
dfaf4afc8e
2 changed files with 8 additions and 11 deletions
|
@ -94,7 +94,7 @@ extern const struct mac_driver *rime_mac;
|
|||
struct rime_sniffer {
|
||||
struct rime_sniffer *next;
|
||||
void (* input_callback)(void);
|
||||
void (* output_callback)(void);
|
||||
void (* output_callback)(int mac_status);
|
||||
};
|
||||
|
||||
#define RIME_SNIFFER(name, input_callback, output_callback) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue