From: Jes Sorensen Date: Mon, 9 Jun 2014 13:16:37 +0000 (+0200) Subject: staging: rtl8723au: cfg80211_rtw_connect(): Check correct return value from rtw_set_8... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7c0e0636753ed98941eb4f904a03b2c6b5e5614d;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8723au: cfg80211_rtw_connect(): Check correct return value from rtw_set_802_11_ssid23a() Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c index 5e0513409214..c116b21a3ce0 100644 --- a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c @@ -2204,7 +2204,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev, /* rtw_set_802_11_encryption_mode(padapter, padapter->securitypriv.ndisencryptstatus); */ - if (rtw_set_802_11_ssid23a(padapter, &ndis_ssid) == false) { + if (rtw_set_802_11_ssid23a(padapter, &ndis_ssid) != _SUCCESS) { ret = -1; goto exit; }