aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-02-03 19:11:46 (GMT)
committerJouni Malinen <j@w1.fi>2014-02-04 11:23:35 (GMT)
commit94ff22ea0870f1a36ae21c4129d51abdeb3d3ec8 (patch)
tree5f1d4e9a5de0d1f66edb7804839bae2c482595bc /wpa_supplicant/ap.c
parent0b5ff2ae12de29445e7a61f94f654f8c7e15c2e6 (diff)
downloadhostap-94ff22ea0870f1a36ae21c4129d51abdeb3d3ec8.zip
hostap-94ff22ea0870f1a36ae21c4129d51abdeb3d3ec8.tar.gz
hostap-94ff22ea0870f1a36ae21c4129d51abdeb3d3ec8.tar.bz2
Remove dead code from AP setup
wpa_supplicant_create_ap() is only called for AP mode, so there is no point in trying to address station (infra/IBSS) modes. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index ce3efcb..4ff27d6 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -505,17 +505,13 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
params.ssid = ssid->ssid;
params.ssid_len = ssid->ssid_len;
switch (ssid->mode) {
- case WPAS_MODE_INFRA:
- params.mode = IEEE80211_MODE_INFRA;
- break;
- case WPAS_MODE_IBSS:
- params.mode = IEEE80211_MODE_IBSS;
- break;
case WPAS_MODE_AP:
case WPAS_MODE_P2P_GO:
case WPAS_MODE_P2P_GROUP_FORMATION:
params.mode = IEEE80211_MODE_AP;
break;
+ default:
+ return -1;
}
if (ssid->frequency == 0)
ssid->frequency = 2462; /* default channel 11 */