|
@@ -1532,6 +1532,7 @@ int wl12xx_cmd_add_peer(struct wl1271 *wl, struct wl12xx_vif *wlvif,
|
|
|
cmd->sp_len = sta->max_sp;
|
|
|
cmd->wmm = sta->wme ? 1 : 0;
|
|
|
cmd->session_id = wl->session_ids[hlid];
|
|
|
+ cmd->role_id = wlvif->role_id;
|
|
|
|
|
|
for (i = 0; i < NUM_ACCESS_CATEGORIES_COPY; i++)
|
|
|
if (sta->wme && (sta->uapsd_queues & BIT(i)))
|
|
@@ -1568,7 +1569,8 @@ out:
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-int wl12xx_cmd_remove_peer(struct wl1271 *wl, u8 hlid)
|
|
|
+int wl12xx_cmd_remove_peer(struct wl1271 *wl, struct wl12xx_vif *wlvif,
|
|
|
+ u8 hlid)
|
|
|
{
|
|
|
struct wl12xx_cmd_remove_peer *cmd;
|
|
|
int ret;
|
|
@@ -1586,6 +1588,7 @@ int wl12xx_cmd_remove_peer(struct wl1271 *wl, u8 hlid)
|
|
|
/* We never send a deauth, mac80211 is in charge of this */
|
|
|
cmd->reason_opcode = 0;
|
|
|
cmd->send_deauth_flag = 0;
|
|
|
+ cmd->role_id = wlvif->role_id;
|
|
|
|
|
|
ret = wl1271_cmd_send(wl, CMD_REMOVE_PEER, cmd, sizeof(*cmd), 0);
|
|
|
if (ret < 0) {
|