From: Jouni Malinen Date: Sun, 16 Aug 2015 20:51:07 +0000 (+0300) Subject: Remove duplicated sta_authorized_cb call X-Git-Tag: hostap_2_5~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c3380d776b0558d4d32c5325c3932ec8367a5ef;p=thirdparty%2Fhostap.git 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 --- 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); }