{
int utilization = 0;
- const int rate = 22*1000*1000;
- const bool erp_ofdm = false;
- const bool short_preamble = false;
+ const int rate = 54*1000*1000;
+ const bool erp_ofdm = true;
+ const bool short_preamble = true;
struct fres_sa_contract *c, *c_new = NULL;
long int period_usec;
fres_block_basic *basic;
tmp_usec = frame_duration(ACK_FRAME_SIZE, rate, erp_ofdm,
short_preamble) + ASIFSTIME_USEC;
duration_usec += fragments * tmp_usec;
+ //printf("duration: %ld ms\n", duration_usec/1000);
/* TODO: If STA-to-STA, multiply it by two. Note that
* AP may use different values for backoff. */
- duration_usec *= 2; /* For demo, we have always STA-to-STA */
+ //duration_usec *= 2; /* For demo, we have always STA-to-STA */
basic = fres_contract_get_basic(c->contract);
period_usec = fosa_rel_time_to_msec(basic->period)*1000;
if (utilization >= 10000 * 96/100) {
goto not_schedulable;
}
-
scenario->utilization = utilization/100; /* For GUI */
basic = fres_contract_get_basic(c_new->contract);
/*int d = c->deadline_usec;*/
- long int d = fosa_rel_time_to_msec(basic->period)*1000;
+ long int d = fosa_rel_time_to_msec(basic->period)*1000;
if (d <= 0) d = 100*1000*1000;
- if (d < 50000) {
+ if (d < 30000) {
goto not_schedulable;
};