From 67bd4fc9ab47f1300edd8696c36b9773c91e6b30 Mon Sep 17 00:00:00 2001 From: Vishal Mahaveer Date: Thu, 27 Sep 2012 14:11:18 -0500 Subject: Revisit "nl80211: dummy DRIVER SETBAND handler" Used the wrong string compare API before. Fix it by using the correst API. Signed-off-by: Vishal Mahaveer --- src/drivers/driver_nl80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 7e07c60..7254ecc 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -9785,13 +9785,13 @@ static int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, if(i < 0) return i; return nl80211_toggle_wowlan_trigger(bss, i, 0); + } else if (os_strncasecmp(cmd, "SETBAND ", 8) == 0) { + /* Do nothing: Handled by wpa_supplicant_driver_cmd */ + return 0; } else if (os_strcasecmp(cmd, "RXFILTER-START") == 0) { return nl80211_set_wowlan_triggers(bss, 1); } else if (os_strcasecmp(cmd, "RXFILTER-STOP") == 0) { return nl80211_set_wowlan_triggers(bss, 0); - } else if (os_strcasecmp(cmd, "SETBAND") == 0) { - /* Do nothing: Handled by wpa_supplicant_driver_cmd */ - ret = 0; } else { wpa_printf(MSG_ERROR, "Unsupported command: %s", cmd); ret = -1; -- cgit v1.1