diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2014-09-24 03:31:56 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-09-24 03:31:56 -0700 |
commit | 138dd458cc2b26e172e191f5c3999dbcfeaffe7a (patch) | |
tree | 30d34477383918a4777a089d712105562e38acec | |
parent | b1f1d33369dfa00744283ea3279e3958cb777ca3 (diff) | |
parent | 076493d772b50d489d1669fbfc951b6797a2ae75 (diff) | |
download | android_hardware_qcom_wlan-138dd458cc2b26e172e191f5c3999dbcfeaffe7a.tar.gz android_hardware_qcom_wlan-138dd458cc2b26e172e191f5c3999dbcfeaffe7a.tar.bz2 android_hardware_qcom_wlan-138dd458cc2b26e172e191f5c3999dbcfeaffe7a.zip |
Merge "wlan: Handle return type from setband ioctl"
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c index 7911cd2..39719b6 100644 --- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c +++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c @@ -19,6 +19,12 @@ #define MAX_WPSP2PIE_CMD_SIZE 512 +/* Return type for setBand*/ +enum { + SEND_CHANNEL_CHANGE_EVENT = 0, + DO_NOT_SEND_CHANNEL_CHANGE_EVENT, +}; + typedef struct android_wifi_priv_cmd { char *buf; int used_len; @@ -94,6 +100,11 @@ int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, wpa_printf(MSG_ERROR, "%s: failed to issue private commands\n", __func__); } else { drv_errors = 0; + if((os_strncasecmp(cmd, "SETBAND", 7) == 0) && + ret == DO_NOT_SEND_CHANNEL_CHANGE_EVENT) { + return 0; + } + ret = 0; if ((os_strcasecmp(cmd, "LINKSPEED") == 0) || (os_strcasecmp(cmd, "RSSI") == 0) || |