staging: rtl8723au: cfg80211_rtw_connect(): Check correct return value from rtw_set_8...
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 9 Jun 2014 13:16:37 +0000 (15:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:00:20 +0000 (14:00 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c

index 5e0513409214c8bbdd960d552e253ff035f7d09b..c116b21a3ce0c655fa2ffb596505bef61a05dc54 100644 (file)
@@ -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;
        }