Implementing 802.11 with Microcontrollers: Wireless Networking for Embedded Systems Designers

I should have said, "Attempt to secure the data we send with our AirDrop module across an 802.11b link" in the last sentence of the previous chapter. WEP (Wired Equivalent Privacy) is an attempt to give wireless LANs the security that wired LANs enjoy by default.
It's relatively simple to add WEP capability to the AirDrop 802.11b driver. So, this chapter will be short and sweet. Let's do it.
Sub Snippet 15.1 is the code segment that makes up the main function of the AirDrop 802.11b driver that is shipped with the assembled and tested EDTP AirDrop variants. As you can see in the Sub Snippet, WEP capability is very easy to add.
**********************************************************void main(void){ unsigned int i,temp,evstat_data; char rc; init_USART1(); init_cf_card(); airdrop_cfg(BSS); airdrop_cfg(SSID); airdrop_cfg(MAX_DATALEN); airdrop_cfg(NIC_RATE); <span style="background-color:dadada">airdrop_cfg(WEP_KEY_128);</span> <span style="background-color:dadada">airdrop_cfg(WEP_KEYID);</span> <span style="background-color:dadada">airdrop_cfg(WEP_AUTH_SK);</span> <span style="background-color:dadada">airdrop_cfg(WEP_ON);</span> temp = rid_read(RID_cfgOwnMACAddress); for(i=0;i<6;i++) { if(i%2) ...