38 #define PRINTF(...) printf(__VA_ARGS__)
45 mac_call_sent_callback(mac_callback_t sent,
void *ptr,
int status,
int num_tx)
47 PRINTF(
"mac_callback_t %p ptr %p status %d num_tx %d\n",
48 (
void *)sent, ptr, status, num_tx);
51 PRINTF(
"mac: collision after %d tx\n", num_tx);
54 PRINTF(
"mac: noack after %d tx\n", num_tx);
57 PRINTF(
"mac: sent after %d tx\n", num_tx);
60 PRINTF(
"mac: error %d after %d tx\n", status, num_tx);
64 sent(ptr, status, num_tx);
The MAC layer deferred the transmission for a later time.
The MAC layer transmission was OK.
The MAC layer did not get an acknowledgement for the packet.