CC3300: Add const to pointers in arguments to wlan_connect; remove an unused function prototype
This commit is contained in:
parent
5058ed3ef4
commit
8651e0f2ca
@ -357,11 +357,8 @@ int cc3000_wait_data(int sockfd)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int to_cc3000_accept_socket(int sockfd, struct sockaddr *addr, socklen_t *addrlen);
|
||||
|
||||
int cc3000_accept_socket(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
|
||||
{
|
||||
//return to_cc3000_accept_socket(sockfd, addr,addrlen);
|
||||
DEBUGASSERT(spiconf.cc3000fd >= 0);
|
||||
|
||||
cc3000_acceptcfg cfg;
|
||||
|
@ -391,8 +391,9 @@ void wlan_stop(void)
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef CC3000_TINY_DRIVER
|
||||
long wlan_connect(unsigned long ulSecType, char *ssid, long ssid_len,
|
||||
uint8_t *bssid, uint8_t *key, long key_len)
|
||||
long wlan_connect(unsigned long ulSecType, FAR const char *ssid,
|
||||
long ssid_len, FAR const uint8_t *bssid,
|
||||
FAR const uint8_t *key, long key_len)
|
||||
{
|
||||
long ret;
|
||||
uint8_t *ptr;
|
||||
@ -445,7 +446,7 @@ long wlan_connect(unsigned long ulSecType, char *ssid, long ssid_len,
|
||||
return ret;
|
||||
}
|
||||
#else
|
||||
long wlan_connect(char *ssid, long ssid_len)
|
||||
long wlan_connect(FAR const char *ssid, long ssid_len)
|
||||
{
|
||||
long ret;
|
||||
uint8_t *ptr;
|
||||
@ -618,7 +619,7 @@ long wlan_ioctl_set_connection_policy(unsigned long should_connect_to_open_ap,
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef CC3000_TINY_DRIVER
|
||||
long wlan_add_profile(unsigned long ulSecType, uint8_t* ucSsid,
|
||||
long wlan_add_profile(unsigned long ulSecType, uint8_t *ucSsid,
|
||||
unsigned long ulSsidLen, uint8_t *ucBssid,
|
||||
unsigned long ulPriority,
|
||||
unsigned long ulPairwiseCipher_Or_TxKeyLen,
|
||||
|
@ -194,10 +194,11 @@ void wlan_stop(void);
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef CC3000_TINY_DRIVER
|
||||
long wlan_connect(unsigned long ulSecType, char *ssid, long ssid_len,
|
||||
uint8_t *bssid, uint8_t *key, long key_len);
|
||||
long wlan_connect(unsigned long ulSecType, FAR const char *ssid,
|
||||
long ssid_len, FAR const uint8_t *bssid,
|
||||
FAR const uint8_t *key, long key_len);
|
||||
#else
|
||||
long wlan_connect(char *ssid, long ssid_len);
|
||||
long wlan_connect(FAR const char *ssid, long ssid_len);
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user