Connecting to the Network

The Wireless Host ("station") needs to associate with an access point (AP) before it can send/receive network-layer data. This is a basic 802.11 system management function.

Association = creation of a “virtual ethernet wire” between the station and the switch.

Basic 3-step procedure followed by the station:

  • Locate an AP to associate with…this process can involve passive or active scanning as discussed below.
  • Authenticate itself to the AP (and possibly the Infrastructure).
  • Associate with the AP (create the "virtual" blue cable).

Now, the station can retrieve an IP address from the subnet and begin TCP/UDP socket communications.


The first step is to locate the AP you wish to join. The algorithm for locating/selecting an AP is not defined by the 802.11 standard, but rather by your application. There are 2 methods provided in 802.11 to discover APs near the station: Passive and Active Scanning, which are illustrated below.

In a typical application, one of several possible commissioning methods are deployed to get a specific AP's network parameters into your application (channel, SSID, security).

After copying these parameters to your Wi-Fi® sub-system's connection profile, your application will call a "WiFi_Connect()" API which uses an Active Scanning method to connect to this specific AP.

Click image to enlarge.


Next, the station attempts to authenticate itself to the AP (at a minimum) and possibly the network.

Authentication Protocols:

  • Based on 802.11 (1997)
    • Open System Authentication (see WEP)
    • Shared Key Authentication (see WEP)
  • Based on 802.11i (2004)
    • Open System Authentication (see WEP)
    • Wi-Fi™ Protected Access (see WPA/2)
Click image to enlarge.


The final step in creation of the virtual blue wire.

After association is complete the DHCP process can begin…to assign an IP address to the station and enable the application to connect with other hosts on the network.


  • Association request/response frames are exchanged.
  • Final bit rates and security parameters are agreed upon.
  • Now, 802.11 data frames can be sent between the station and AP.
Click image to enlarge.

20th Annual
Microchip MASTERs Conference 2016
Register now - Deadline: July 29

JW Marriott Desert Ridge Resort-Phoenix, AZ

© 2016 Microchip Technology, Inc.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.