]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
wcn36xx: Use allocated self sta index instead of hard coded
authorPontus Fuchs <pontus.fuchs@gmail.com>
Mon, 17 Feb 2014 19:41:55 +0000 (20:41 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Sep 2017 16:19:06 +0000 (18:19 +0200)
Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
drivers/net/wireless/ath/wcn36xx/smd.c

index c60cd3394b20c732f8085b5c483a41ebecdefd91..7894aaebfd23d8c044df08a1c0ff042cfad78429 100644 (file)
@@ -200,7 +200,7 @@ static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn,
                sta_params->sta_index = WCN36XX_HAL_STA_INVALID_IDX;
        } else {
                sta_params->type = 0;
-               sta_params->sta_index = 1;
+               sta_params->sta_index = vif_priv->self_sta_index;
        }
 
        sta_params->listen_interval = WCN36XX_LISTEN_INTERVAL(wcn);