From: Larry Finger Date: Mon, 18 Nov 2013 17:11:28 +0000 (-0600) Subject: rtlwifi: Set the link state X-Git-Tag: firefly_0821_release~3679^2~3009 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=30d93e3bc81d1e123ae190bfbcf9d5b2a94a78b9;p=firefly-linux-kernel-4.4.55.git rtlwifi: Set the link state commit 619ce76f8bb850b57032501a39f26aa6c6731c70 upstream. The present code fails to set the linked state when an interface is added. Signed-off-by: Larry Finger Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c index 7ce14cb6e8b2..e2301970c85e 100644 --- a/drivers/net/wireless/rtlwifi/core.c +++ b/drivers/net/wireless/rtlwifi/core.c @@ -194,6 +194,7 @@ static int rtl_op_add_interface(struct ieee80211_hw *hw, rtlpriv->cfg->maps [RTL_IBSS_INT_MASKS]); } + mac->link_state = MAC80211_LINKED; break; case NL80211_IFTYPE_ADHOC: RT_TRACE(rtlpriv, COMP_MAC80211, DBG_LOUD,