rtlwifi: rtl8192cu: Add missing parameter setup
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 14 Dec 2015 22:34:38 +0000 (16:34 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:13 +0000 (15:07 -0800)
commit b68d0ae7e58624c33f2eddab471fee55db27dbf9 upstream.

This driver fails to copy the module parameter for software encryption
to the locations used by the main code.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/sw.c

index fd4a5353d2169e39ef3f3a12c26aee577778f162..7c6f7f0d18c602011d9048fc54565b105efaf64e 100644 (file)
@@ -65,6 +65,8 @@ static int rtl92cu_init_sw_vars(struct ieee80211_hw *hw)
        rtlpriv->dm.disable_framebursting = false;
        rtlpriv->dm.thermalvalue = 0;
        rtlpriv->dbg.global_debuglevel = rtlpriv->cfg->mod_params->debug;
+       rtlpriv->cfg->mod_params->sw_crypto =
+               rtlpriv->cfg->mod_params->sw_crypto;
 
        /* for firmware buf */
        rtlpriv->rtlhal.pfirmware = vzalloc(0x4000);