|
@@ -1762,6 +1762,22 @@ static inline int iwl_mvm_configure_bcast_filter(struct iwl_mvm *mvm)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+static int iwl_mvm_update_mu_groups(struct iwl_mvm *mvm,
|
|
|
|
+ struct ieee80211_vif *vif)
|
|
|
|
+{
|
|
|
|
+ struct iwl_mu_group_mgmt_cmd cmd = {};
|
|
|
|
+
|
|
|
|
+ memcpy(cmd.membership_status, vif->bss_conf.mu_group.membership,
|
|
|
|
+ WLAN_MEMBERSHIP_LEN);
|
|
|
|
+ memcpy(cmd.user_position, vif->bss_conf.mu_group.position,
|
|
|
|
+ WLAN_USER_POSITION_LEN);
|
|
|
|
+
|
|
|
|
+ return iwl_mvm_send_cmd_pdu(mvm,
|
|
|
|
+ WIDE_ID(DATA_PATH_GROUP,
|
|
|
|
+ UPDATE_MU_GROUPS_CMD),
|
|
|
|
+ 0, sizeof(cmd), &cmd);
|
|
|
|
+}
|
|
|
|
+
|
|
static void iwl_mvm_bss_info_changed_station(struct iwl_mvm *mvm,
|
|
static void iwl_mvm_bss_info_changed_station(struct iwl_mvm *mvm,
|
|
struct ieee80211_vif *vif,
|
|
struct ieee80211_vif *vif,
|
|
struct ieee80211_bss_conf *bss_conf,
|
|
struct ieee80211_bss_conf *bss_conf,
|
|
@@ -1870,6 +1886,18 @@ static void iwl_mvm_bss_info_changed_station(struct iwl_mvm *mvm,
|
|
vif->addr);
|
|
vif->addr);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * The firmware tracks the MU-MIMO group on its own.
|
|
|
|
+ * However, on HW restart we should restore this data
|
|
|
|
+ */
|
|
|
|
+ if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status) &&
|
|
|
|
+ changes & BSS_CHANGED_MU_GROUPS) {
|
|
|
|
+ ret = iwl_mvm_update_mu_groups(mvm, vif);
|
|
|
|
+ if (ret)
|
|
|
|
+ IWL_ERR(mvm,
|
|
|
|
+ "failed to update VHT MU_MIMO groups\n");
|
|
|
|
+ }
|
|
|
|
+
|
|
iwl_mvm_recalc_multicast(mvm);
|
|
iwl_mvm_recalc_multicast(mvm);
|
|
iwl_mvm_configure_bcast_filter(mvm);
|
|
iwl_mvm_configure_bcast_filter(mvm);
|
|
|
|
|