|
@@ -441,6 +441,7 @@ int wl12xx_cmd_role_start_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif)
|
|
|
{
|
|
|
struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
|
|
|
struct wl12xx_cmd_role_start *cmd;
|
|
|
+ u32 supported_rates;
|
|
|
int ret;
|
|
|
|
|
|
cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
|
|
@@ -461,7 +462,14 @@ int wl12xx_cmd_role_start_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif)
|
|
|
cmd->sta.ssid_len = wlvif->ssid_len;
|
|
|
memcpy(cmd->sta.ssid, wlvif->ssid, wlvif->ssid_len);
|
|
|
memcpy(cmd->sta.bssid, vif->bss_conf.bssid, ETH_ALEN);
|
|
|
- cmd->sta.local_rates = cpu_to_le32(wlvif->rate_set);
|
|
|
+
|
|
|
+ supported_rates = CONF_TX_ENABLED_RATES | CONF_TX_MCS_RATES |
|
|
|
+ wlcore_hw_sta_get_ap_rate_mask(wl, wlvif);
|
|
|
+ if (wlvif->p2p)
|
|
|
+ supported_rates &= ~CONF_TX_CCK_RATES;
|
|
|
+
|
|
|
+ cmd->sta.local_rates = cpu_to_le32(supported_rates);
|
|
|
+
|
|
|
cmd->channel_type = wlcore_get_native_channel_type(wlvif->channel_type);
|
|
|
|
|
|
if (wlvif->sta.hlid == WL12XX_INVALID_LINK_ID) {
|
|
@@ -601,7 +609,7 @@ int wl12xx_cmd_role_start_ap(struct wl1271 *wl, struct wl12xx_vif *wlvif)
|
|
|
memcpy(cmd->ap.ssid, bss_conf->ssid, bss_conf->ssid_len);
|
|
|
}
|
|
|
|
|
|
- supported_rates = CONF_TX_AP_ENABLED_RATES | CONF_TX_MCS_RATES |
|
|
|
+ supported_rates = CONF_TX_ENABLED_RATES | CONF_TX_MCS_RATES |
|
|
|
wlcore_hw_ap_get_mimo_wide_rate_mask(wl, wlvif);
|
|
|
|
|
|
wl1271_debug(DEBUG_CMD, "cmd role start ap with supported_rates 0x%08x",
|