diff options
author | Vishal Mahaveer <vishalm@ti.com> | 2012-09-27 14:11:18 -0500 |
---|---|---|
committer | Arik Nemtsov <arik@wizery.com> | 2012-09-28 09:28:09 +0200 |
commit | 67bd4fc9ab47f1300edd8696c36b9773c91e6b30 (patch) | |
tree | 02e5d6b01a6ebaca3d22910b6a44d29455387c61 /src | |
parent | 4ecf5147c1fc48c18f1af2d20e6f131fcac76191 (diff) | |
download | external_wpa_supplicant_8_ti-67bd4fc9ab47f1300edd8696c36b9773c91e6b30.zip external_wpa_supplicant_8_ti-67bd4fc9ab47f1300edd8696c36b9773c91e6b30.tar.gz external_wpa_supplicant_8_ti-67bd4fc9ab47f1300edd8696c36b9773c91e6b30.tar.bz2 |
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 <vishalm@ti.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/driver_nl80211.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |