From 9c3380d776b0558d4d32c5325c3932ec8367a5ef Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 16 Aug 2015 23:51:07 +0300 Subject: [PATCH] Remove duplicated sta_authorized_cb call Commit 6959145b86318710d0186b618d54bce2991a6e6f ('FST: Integration into hostapd') introduced this duplicated call due to an incorrect merge conflict resolution in ap_sta_set_authorized(). An earlier commit 61fc90483fec17b69a26b16e42723474daccec24 ('P2P: Handle improper WPS termination on GO during group formation') had moved this call to an earlier location in the function and there is no point in re-introducing another copy of the call at the end of the function. Signed-off-by: Jouni Malinen --- src/ap/sta_info.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index d4418b20d..d64307ccf 100644 --- a/src/ap/sta_info.c +++ b/src/ap/sta_info.c @@ -1074,10 +1074,6 @@ void ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta, sta->addr); } #endif /* CONFIG_FST */ - - if (hapd->sta_authorized_cb) - hapd->sta_authorized_cb(hapd->sta_authorized_cb_ctx, - sta->addr, authorized, dev_addr); }