Remove duplicated sta_authorized_cb call
authorJouni Malinen <j@w1.fi>
Sun, 16 Aug 2015 20:51:07 +0000 (23:51 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 16 Aug 2015 21:18:32 +0000 (00:18 +0300)
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 <j@w1.fi>
src/ap/sta_info.c

index d4418b2..d64307c 100644 (file)
@@ -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);
 }