]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
mac80211: fix return from ieee80211_assoc_success
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 8 Jan 2010 18:01:07 +0000 (19:01 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Jan 2010 19:02:11 +0000 (14:02 -0500)
sparse pointed out that I made a mistake converting
the return value of ieee80211_assoc_success to bool,
this place should return false instead of one of the
enum values (which would be true).

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c

index 0336dbb45ac582cb6cb5ba1dc07b15c053feb1ab..8045fd63616bf8413827dd7796e6eb0e3b6651f5 100644 (file)
@@ -1098,7 +1098,7 @@ static bool ieee80211_assoc_success(struct ieee80211_work *wk,
        if (err) {
                printk(KERN_DEBUG "%s: failed to insert STA entry for"
                       " the AP (error %d)\n", sdata->name, err);
-               return RX_MGMT_CFG80211_ASSOC_ERROR;
+               return false;
        }
 
        if (elems.wmm_param)