iwlwifi: mvm: ToF - fill bssid of responder configuration
authorGregory Greenman <gregory.greenman@intel.com>
Mon, 20 Jul 2015 04:44:44 +0000 (07:44 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Oct 2015 11:33:25 +0000 (14:33 +0300)
The command needs to have the AP interfaces BSSID (which corresponds
to its address).

Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/iwlwifi/mvm/tof.c

index 7ae0bd894c8258aaa73c0900bc3c49f5f1ea8568..4007f1d421dd6db1249f47122b933b751c300c0a 100644 (file)
@@ -185,6 +185,7 @@ int iwl_mvm_tof_responder_cmd(struct iwl_mvm *mvm,
        }
 
        cmd->sta_id = mvmvif->bcast_sta.sta_id;
+       memcpy(cmd->bssid, vif->addr, ETH_ALEN);
        return iwl_mvm_send_cmd_pdu(mvm, iwl_cmd_id(TOF_CMD,
                                                    IWL_ALWAYS_LONG_GROUP, 0),
                                    0, sizeof(*cmd), cmd);