summaryrefslogtreecommitdiffstatshomepage
path: root/stm/cc3k/wlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/cc3k/wlan.c')
-rw-r--r--stm/cc3k/wlan.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stm/cc3k/wlan.c b/stm/cc3k/wlan.c
index fe9bc63d0b..be6b3242ce 100644
--- a/stm/cc3k/wlan.c
+++ b/stm/cc3k/wlan.c
@@ -605,7 +605,7 @@ wlan_add_profile(unsigned long ulSecType,
unsigned char* ucPf_OrKey,
unsigned long ulPassPhraseLen)
{
- unsigned short arg_len;
+ unsigned short arg_len = 0;
long ret;
unsigned char *ptr;
long i = 0;
@@ -706,8 +706,7 @@ wlan_add_profile(unsigned long ulSecType,
}
// Initiate a HCI command
- hci_command_send(HCI_CMND_WLAN_IOCTL_ADD_PROFILE,
- ptr, arg_len);
+ hci_command_send(HCI_CMND_WLAN_IOCTL_ADD_PROFILE, ptr, arg_len);
// Wait for command complete event
SimpleLinkWaitEvent(HCI_CMND_WLAN_IOCTL_ADD_PROFILE, &ret);