hostapd: Avoid dead code with P2P not enabled
authorPhilippe De Swert <philippe.deswert@jollamobile.com>
Tue, 23 Sep 2014 07:08:30 +0000 (10:08 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 28 Sep 2014 17:47:06 +0000 (20:47 +0300)
commit375f4a3b5a8fa599f9a3cfaced7bb72bef685068
treeef279078ab0b6fc8610bef3aab7c7c1a378515db
parent6a60488745051b40720720c4eb54a88c267d0397
hostapd: Avoid dead code with P2P not enabled

In case P2P is not enabled the if (dev_addr) is always ignored as
dev_addr will be NULL. As this code is relevant only to P2P, it can be
moved to be the ifdef to avoid static analyzer warnings. (CID 72907)

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
src/ap/sta_info.c