|
@@ -777,7 +777,23 @@ int wl1271_acx_sta_rate_policies(struct wl1271 *wl)
|
|
|
acx->rate_policy.long_retry_limit = c->long_retry_limit;
|
|
|
acx->rate_policy.aflags = c->aflags;
|
|
|
|
|
|
+ ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
|
|
|
+ if (ret < 0) {
|
|
|
+ wl1271_warning("Setting of rate policies failed: %d", ret);
|
|
|
+ goto out;
|
|
|
+ }
|
|
|
|
|
|
+ /*
|
|
|
+ * configure one rate class for basic p2p operations.
|
|
|
+ * (p2p packets should always go out with OFDM rates, even
|
|
|
+ * if we are currently connected to 11b AP)
|
|
|
+ */
|
|
|
+ acx->rate_policy_idx = cpu_to_le32(ACX_TX_BASIC_RATE_P2P);
|
|
|
+ acx->rate_policy.enabled_rates =
|
|
|
+ cpu_to_le32(CONF_TX_RATE_MASK_BASIC_P2P);
|
|
|
+ acx->rate_policy.short_retry_limit = c->short_retry_limit;
|
|
|
+ acx->rate_policy.long_retry_limit = c->long_retry_limit;
|
|
|
+ acx->rate_policy.aflags = c->aflags;
|
|
|
|
|
|
ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
|
|
|
if (ret < 0) {
|