]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Suppress warning on non-P2P config
authorMasashi Honma <masashi.honma@gmail.com>
Thu, 16 Mar 2017 01:59:40 +0000 (10:59 +0900)
committerJouni Malinen <j@w1.fi>
Mon, 27 Mar 2017 14:21:02 +0000 (17:21 +0300)
commitfbba28f8c53701796ed54926774a93e8786b8bfe
tree4ff93ac7311218e247d150b4a0ea74cec338fbab
parent1275958873aaea06f8f2cc6142082a2acfc96334
P2P: Suppress warning on non-P2P config

Without CONFIG_P2P config, the following warning occurs if CONFIG_AP is
enabled for the build:

ap.c: In function ‘wpas_conf_ap_vht’:
ap.c:54:5: warning: unused variable ‘channel’ [-Wunused-variable]
  u8 channel = conf->channel;
     ^
ap.c:53:5: warning: unused variable ‘center_chan’ [-Wunused-variable]
  u8 center_chan = 0;
     ^

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
wpa_supplicant/ap.c