aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lin <dlin@marvell.com>2016-08-23 11:02:32 +0800
committerDavid Lin <dlin@marvell.com>2016-08-23 11:02:32 +0800
commit58fe09164f187f5a28e4dceea5628414dd398a4a (patch)
tree8fd889e98999dc9fec14e0d7bb624770f2b299f6
parentcc0785f5d5402c42d10044ab12c7f8b69da2d0e2 (diff)
Fixed rate adaptation problem of station mode.
Signed-off-by: David Lin <dlin@marvell.com>
-rw-r--r--fwcmd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fwcmd.c b/fwcmd.c
index cb390ca..81ee5cf 100644
--- a/fwcmd.c
+++ b/fwcmd.c
@@ -1877,8 +1877,9 @@ int mwl_fwcmd_set_new_stn_add(struct ieee80211_hw *hw,
pcmd->action = cpu_to_le16(HOSTCMD_ACT_STA_ACTION_ADD);
if (vif->type == NL80211_IFTYPE_STATION) {
- pcmd->aid = 0;
- pcmd->stn_id = 0;
+ pcmd->aid = 1;
+ pcmd->stn_id = 1;
+ pcmd->reserved = 1;
} else {
pcmd->aid = cpu_to_le16(sta->aid);
pcmd->stn_id = cpu_to_le16(sta->aid);
@@ -1931,7 +1932,9 @@ int mwl_fwcmd_set_new_stn_add(struct ieee80211_hw *hw,
if (vif->type == NL80211_IFTYPE_STATION) {
ether_addr_copy(pcmd->mac_addr, mwl_vif->sta_mac);
-
+ pcmd->aid = 2;
+ pcmd->stn_id = 2;
+ pcmd->reserved = 0;
if (mwl_fwcmd_exec_cmd(priv, HOSTCMD_CMD_SET_NEW_STN)) {
mutex_unlock(&priv->fwcmd_mutex);
wiphy_err(hw->wiphy, "failed execution\n");