User`s guide

Aironet Wireless Communications, Inc. 7-7 Confidential and Proprietary
After bootstrapping, the following is sample code for configuring and enabling the MAC:
tdsCommand Cmd; // see following section for definition
tdsResponse Rsp; // see following section for definition
PC4500_CONFIG cfg; // see following section for definition
typedef struct {
unsigned short SsidLen;
unsigned char Ssid[32];
} PC4500_SSID;
struct MySsid {
u16 u16RidLen;
PC4500_SSID aSSID[2];
} = {
0, // PC4500 will ensure that the RidLen is unchanged
{ 6, "MYSSID" } // SSID length and value
{ 0, "" } // zero length SSID to end the list
}
u16 minimum_mac_enable(void)
{
memset(Cmd, 0, sizeof(Cmd));
Cmd.Command = MAC_DISABLE; // disable in case already enabled
issuecommand(&Cmd, &Rsp);
// general configuration
(read/modify/write)
PC4500_readrid(0xFF10, &cfg, sizeof(cfg));
cfg.u16OperatingMode = MODE_STA_ESS; // station in ESS mode
PC4500_writerid(0xFF10, &cfg, sizeof(cfg));
// ssid list
PC4500_writerid(0xFF11, &MySsid, sizeof(MySsid));
memset(Cmd, 0, sizeof(Cmd));
Cmd.Command = MAC_ENABLE; // enable the MAC
issuecommand(&Cmd, &Rsp);
if ((Rsp.Status & 0xFF00) != 0) {
Reason = Rsp.Resp0;
BadRidNumber = Rsp.Resp1;
BadRidOffset = Rsp.Resp2;
}
return SUCCESS;
}