WL05 Driver Library – API Documentation

Header image

Main page


§ wl05_scan_channel_mask()

int wl05_scan_channel_mask ( int  band,
uint32  mask 
)

Set the exact channels that are to be scanned for wireless networks. This function affects all the subsequent calls to wl05_scan.

Parameters
[in]band0: 2.4 GHz, 1: 5 GHz
[in]maskThe channels that correspond to bits set to 1 are the ones that shall be scanned. According to the selected band, each bit corresponds to a channel as follows:
  • 2.4 GHz:
    • Bit 0: Channel 1
    • Bit 1: Channel 2
    • Bit 2: Channel 3
    • Bit 3: Channel 4
    • Bit 4: Channel 5
    • Bit 5: Channel 6
    • Bit 6: Channel 7
    • Bit 7: Channel 8
    • Bit 8: Channel 9
    • Bit 9: Channel 10
    • Bit 10: Channel 11
    • Bit 11: Channel 12
    • Bit 12: Channel 13
  • 5 GHz:
    • Bit 0: Channel 36
    • Bit 1: Channel 40
    • Bit 2: Channel 44
    • Bit 3: Channel 48
    • Bit 4: Channel 52
    • Bit 5: Channel 56
    • Bit 6: Channel 60
    • Bit 7: Channel 64
    • Bit 8: Channel 100
    • Bit 9: Channel 104
    • Bit 10: Channel 108
    • Bit 11: Channel 112
    • Bit 12: Channel 116
    • Bit 13: Channel 120
    • Bit 14: Channel 124
    • Bit 15: Channel 128
    • Bit 16: Channel 132
    • Bit 17: Channel 136
    • Bit 18: Channel 140
    • Bit 19: Channel 149
    • Bit 20: Channel 153
    • Bit 21: Channel 157
    • Bit 22: Channel 161
    • Bit 23: Channel 165
Returns
  • 0: Success
  • -1: Failure
Since
V2.02
Note
If all the bits in the mask parameter are 0, then all the channels are scanned. If at least one bit is set to 1, then only the channels that correspond to the set bits are scanned.
See also
WL05_Band, wl05_scan





Top of page | Main page

Copyright © 2016 Beck IPC GmbH
Generated by Doxygen 1.8.12