Skip to content

Commit

Permalink
mac80211: fix return from ieee80211_assoc_success
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jan 12, 2010
1 parent 67e2eb2 commit 90be561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 90be561

Please sign in to comment.