diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-01-08 18:01:07 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-12 19:02:11 (GMT) |
commit | 90be561b119a9e5439733f09cc70bd4ce9ec8022 (patch) | |
tree | 5fe3d187ed31f553dcde5056b6e6d21f135d59cb /net | |
parent | 67e2eb27958cae758ccbc86443c360ec285acc3e (diff) | |
download | linux-fsl-qoriq-90be561b119a9e5439733f09cc70bd4ce9ec8022.tar.xz |
mac80211: fix return from ieee80211_assoc_success
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 0336dbb..8045fd6 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -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) |