|
@@ -847,12 +847,18 @@ int wl1251_acx_rate_policies(struct wl1251 *wl)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
/* configure one default (one-size-fits-all) rate class */
|
|
|
- acx->rate_class_cnt = 1;
|
|
|
+ acx->rate_class_cnt = 2;
|
|
|
acx->rate_class[0].enabled_rates = ACX_RATE_MASK_UNSPECIFIED;
|
|
|
acx->rate_class[0].short_retry_limit = ACX_RATE_RETRY_LIMIT;
|
|
|
acx->rate_class[0].long_retry_limit = ACX_RATE_RETRY_LIMIT;
|
|
|
acx->rate_class[0].aflags = 0;
|
|
|
|
|
|
+ /* no-retry rate class */
|
|
|
+ acx->rate_class[1].enabled_rates = ACX_RATE_MASK_UNSPECIFIED;
|
|
|
+ acx->rate_class[1].short_retry_limit = 0;
|
|
|
+ acx->rate_class[1].long_retry_limit = 0;
|
|
|
+ acx->rate_class[1].aflags = 0;
|
|
|
+
|
|
|
ret = wl1251_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
|
|
|
if (ret < 0) {
|
|
|
wl1251_warning("Setting of rate policies failed: %d", ret);
|