* parameter order is like strncpy, but returns count
* of bytes copied. Minimum bytes copied is null char(1)/wchar(2)
*/
-ulong wchar2ascii(char *abuf, ushort * wbuf, ushort wbuflen, ulong abuflen)
+ulong wchar2ascii(char *abuf, unsigned short * wbuf, unsigned short wbuflen, ulong abuflen)
{
ulong copyct = 1;
- ushort i;
+ unsigned short i;
if (abuflen == 0)
return 0;
/* wbuflen is in bytes */
- wbuflen /= sizeof(ushort);
+ wbuflen /= sizeof(unsigned short);
for (i = 0; i < wbuflen; ++i) {
if (--abuflen == 0)
extern char *BCMROMFN(bcmstrcat) (char *dest, const char *src);
extern char *BCMROMFN(bcmstrncat) (char *dest, const char *src,
uint size);
- extern ulong wchar2ascii(char *abuf, ushort *wbuf, ushort wbuflen,
+ extern ulong wchar2ascii(char *abuf, unsigned short *wbuf, unsigned short wbuflen,
ulong abuflen);
char *bcmstrtok(char **string, const char *delimiters, char *tokdelim);
int bcmstricmp(const char *s1, const char *s2);
#endif
#define TYPEDEF_UINT
-#define TYPEDEF_USHORT
#define TYPEDEF_ULONG
/*
/* define ushort, uint, ulong */
-#ifndef TYPEDEF_USHORT
-typedef unsigned short ushort;
-#endif
-
#ifndef TYPEDEF_UINT
typedef unsigned int uint;
#endif
#define AUTO (-1) /* Auto = -1 */
-#undef TYPEDEF_USHORT
#undef TYPEDEF_UINT
#undef TYPEDEF_ULONG
#undef TYPEDEF_UINT16
/* receptacle for WLC_SET_WSEC_PMK parameter */
typedef struct {
- ushort key_len; /* octets in key material */
- ushort flags; /* key handling qualification */
+ unsigned short key_len; /* octets in key material */
+ unsigned short flags; /* key handling qualification */
u8 key[WSEC_MAX_PSK_LEN]; /* PMK material */
} wsec_pmk_t;