fosa_rel_time_to_msec(basic->period),
(long unsigned int)bytes);
+ period_usec = basic ? fosa_rel_time_to_msec(basic->period)*1000 : 0;
+
/* Calculate protocol overhead */
fragments = (bytes + MTU - 1) / MTU;
- if (fragments == 0)
+ if (fragments == 0 && period_usec != 0)
continue;
const int data_overhead = UDP_HEADER_SIZE + IP_HEADER_SIZE +
* AP may use different values for backoff. */
//duration_usec *= 2; /* For demo, we have always STA-to-STA */
- basic = fres_contract_get_basic(c->contract);
- period_usec = basic ? fosa_rel_time_to_msec(basic->period)*1000 : 0;
-
if (c->contract == c->new) {
if (period_usec == 0) {
ul_logmsg("Period is zero!\n");