iwlwifi: mvm: report delayed beacon count to FW
authorSara Sharon <sara.sharon@intel.com>
Wed, 12 Dec 2018 11:43:29 +0000 (13:43 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Mar 2019 10:59:39 +0000 (12:59 +0200)
Support passing to FW delayed beacon count. This
represents the delay the AP can have when moving to
the new channel.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

index 3a92c09d46926fa6d2d565df9e1479e7988ccde1..1bdc27d07d748426ab97a884d80db36913b7929f 100644 (file)
@@ -4473,6 +4473,10 @@ static int iwl_mvm_schedule_client_csa(struct iwl_mvm *mvm,
 
        lockdep_assert_held(&mvm->mutex);
 
+       if (chsw->delay)
+               cmd.cs_delayed_bcn_count =
+                       DIV_ROUND_UP(chsw->delay, vif->bss_conf.beacon_int);
+
        return iwl_mvm_send_cmd_pdu(mvm,
                                    WIDE_ID(MAC_CONF_GROUP,
                                            CHANNEL_SWITCH_TIME_EVENT_CMD),