diff options
author | Jeff Johnson <jjohnson@codeaurora.org> | 2013-05-03 14:39:30 -0700 |
---|---|---|
committer | Vinay Krishna Eranna <veran@codeaurora.org> | 2013-08-07 11:11:15 +0530 |
commit | 75b3b21a2a108442d5793f053c05b90deef02b8f (patch) | |
tree | 6595681550da1dea277fdbcdb9bdd40802ed0419 | |
parent | a6f37dd11c9f76b955f199efa7f54225bfd5c177 (diff) | |
download | android_hardware_qcom_wlan-75b3b21a2a108442d5793f053c05b90deef02b8f.tar.gz android_hardware_qcom_wlan-75b3b21a2a108442d5793f053c05b90deef02b8f.tar.bz2 android_hardware_qcom_wlan-75b3b21a2a108442d5793f053c05b90deef02b8f.zip |
qcwcn: Properly indicate "channel list changed" event
Code exists such that when a "COUNTRY" command is executed, a "channel
list changed" event is supposed to be sent to the supplicant. However
due to a logic error the event is not actually sent. Modify the code
to properly detect when a "COUNTRY" command is successfully processed
so that the event is sent. Also do the same for "SETCOUNTRYREV" and
"SETBAND" since these also result in a change in the channel list.
Change-Id: I85283a22f106171dd30f494e40a7a4e88631bb06
CRs-fixed: 482678
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c index cfba814..9d46e69 100644 --- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c +++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c @@ -74,14 +74,15 @@ int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, ret = 0; if ((os_strcasecmp(cmd, "LINKSPEED") == 0) || (os_strcasecmp(cmd, "RSSI") == 0) || - (os_strcasecmp(cmd, "GETBAND") == 0) ) + (os_strcasecmp(cmd, "GETBAND") == 0) ){ ret = strlen(buf); - else if (os_strcasecmp(cmd, "COUNTRY") == 0) + } else if ((os_strncasecmp(cmd, "COUNTRY", 7) == 0) || + (os_strncasecmp(cmd, "SETBAND", 7) == 0) || + (os_strncasecmp(cmd, "SETCOUNTRYREV", 13) == 0)) { + wpa_printf(MSG_DEBUG, "%s: %s", __func__, cmd); wpa_supplicant_event(drv->ctx, EVENT_CHANNEL_LIST_CHANGED, NULL); - else if (os_strncasecmp(cmd, "SETBAND", 7) == 0) - wpa_printf(MSG_DEBUG, "%s: %s ", __func__, cmd); - else if (os_strcasecmp(cmd, "P2P_DEV_ADDR") == 0) + } else if (os_strcasecmp(cmd, "P2P_DEV_ADDR") == 0) wpa_printf(MSG_DEBUG, "%s: P2P: Device address ("MACSTR")", __func__, MAC2STR(buf)); else if (os_strcasecmp(cmd, "P2P_SET_PS") == 0) |