1
0

net80211.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984
  1. /*++
  2. Copyright (c) 2015 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. net80211.h
  5. Abstract:
  6. This header contains definitions for the 802.11 core wireless networking
  7. library.
  8. Author:
  9. Chris Stevens 19-Oct-2015
  10. --*/
  11. //
  12. // ------------------------------------------------------------------- Includes
  13. //
  14. #include <minoca/kernel/driver.h>
  15. #include <minoca/net/netdrv.h>
  16. //
  17. // Redefine the API define into an export.
  18. //
  19. #define NET80211_API __DLLEXPORT
  20. #include <minoca/net/net80211.h>
  21. #include <minoca/net/net8022.h>
  22. //
  23. // ---------------------------------------------------------------- Definitions
  24. //
  25. #define NET80211_ALLOCATION_TAG 0x69666957 // 'ifiW'
  26. //
  27. // Define the maximum number of supported keys.
  28. //
  29. #define NET80211_MAX_KEY_COUNT NET80211_CCMP_MAX_KEY_COUNT
  30. //
  31. // Define the maximum passphrase supported by 802.11 encryption. WPA2-PSK has
  32. // a maximum of 64 characters. This is internal as it may change over time.
  33. //
  34. #define NET80211_MAX_PASSPHRASE_LENGTH 64
  35. //
  36. // Define the set of scan flags.
  37. //
  38. #define NET80211_SCAN_FLAG_BACKGROUND 0x00000001
  39. #define NET80211_SCAN_FLAG_BROADCAST 0x00000002
  40. #define NET80211_SCAN_FLAG_JOIN 0x00000004
  41. //
  42. // Define the default amount of time to wait on a channel during a scan.
  43. //
  44. #define NET80211_DEFAULT_SCAN_DWELL_TIME (100 * MICROSECONDS_PER_MILLISECOND)
  45. //
  46. // Define the set of 802.11 link flags.
  47. //
  48. #define NET80211_LINK_FLAG_DATA_PAUSED 0x00000001
  49. #define NET80211_LINK_FLAG_TIMER_QUEUED 0x00000002
  50. #define NET80211_LINK_FLAG_SCANNING 0x00000004
  51. //
  52. // Define the set of BSS entry flags.
  53. //
  54. #define NET80211_BSS_FLAG_ENCRYPT_DATA 0x00000001
  55. //
  56. // Define the set of 802.11 encryption flags.
  57. //
  58. #define NET80211_ENCRYPTION_FLAG_USE_GROUP_CIPHER 0x00000001
  59. //
  60. // ------------------------------------------------------ Data Type Definitions
  61. //
  62. typedef
  63. VOID
  64. (*PNET80211_SCAN_COMPLETION_ROUTINE) (
  65. PNET80211_LINK Link,
  66. KSTATUS ScanStatus
  67. );
  68. /*++
  69. Routine Description:
  70. This routine is called when a scan for nearby BSS access points has
  71. completed.
  72. Arguments:
  73. Link - Supplies a pointer to the 802.11 link that performed the scan.
  74. ScanStatus - Supplies the status result of the scan.
  75. Return Value:
  76. None.
  77. --*/
  78. /*++
  79. Structure Description:
  80. This structure defines the scan state for the 802.11 node.
  81. Members:
  82. Link - Stores a pointer to the 802.11 link over which the scan will be
  83. performed.
  84. Flags - Stores a bitmask of flags that dictate the scan's behavior. See
  85. NET80211_SCAN_FLAG_* for definitions.
  86. Channel - Stores the current channel that is being scanned.
  87. Bssid - Stores an optional BSSID to be used when scanning for a specific
  88. BSS. This is only valid when the broadcast flag is not set.
  89. SsidLength - Stores the number of characters in the SSID for which the scan
  90. is searching.
  91. Ssid - Stores the SSID of the ESS for which the scan is searching.
  92. PassphraseLength - Stores the number of characters in the passphrase of the
  93. ESS for which the scan is searching.
  94. Passphrase - Stores the passphrase of the ESS for which the scan is
  95. searching.
  96. CompletionRoutine - Stores a pointer to the routine to call once the scan
  97. has completed.
  98. --*/
  99. typedef struct _NET80211_SCAN_STATE {
  100. PNET80211_LINK Link;
  101. ULONG Flags;
  102. ULONG Channel;
  103. UCHAR Bssid[NET80211_ADDRESS_SIZE];
  104. ULONG SsidLength;
  105. UCHAR Ssid[NET80211_MAX_SSID_LENGTH];
  106. ULONG PassphraseLength;
  107. UCHAR Passphrase[NET80211_MAX_PASSPHRASE_LENGTH];
  108. PNET80211_SCAN_COMPLETION_ROUTINE CompletionRoutine;
  109. } NET80211_SCAN_STATE, *PNET80211_SCAN_STATE;
  110. /*++
  111. Structure Description:
  112. This structure defines a key for the 802.11 core networking library.
  113. Members:
  114. Flags - Stores a bitmask of flags describing the key. See
  115. NET80211_KEY_FLAG_* for definitions.
  116. Id - Stores the key ID negotiatied between the station and access point.
  117. Length - Stores the length of the key, in bytes.
  118. PacketNumber - Stores a 64-bit packet number that is incremented for each
  119. encrypted packet sent with the key. Only the lower 48-bits are used.
  120. ReplayCounter - Stores a 64-bit replay counter that is updated on each
  121. accepted data frame. All subsequent data frames must have a packet
  122. number greater than the current replay counter.
  123. Value - Stores the array holding the value of the key.
  124. --*/
  125. typedef struct _NET80211_KEY {
  126. ULONG Flags;
  127. ULONG Id;
  128. ULONG Length;
  129. volatile ULONGLONG PacketNumber;
  130. ULONGLONG ReplayCounter;
  131. UCHAR Value[ANYSIZE_ARRAY];
  132. } NET80211_KEY, *PNET80211_KEY;
  133. /*++
  134. Structure Description:
  135. This structure defines the encryption information for a BSS.
  136. Members:
  137. Pairwise - Stores the pairwise encryption algorithm.
  138. Group - Stores the group encryption algorithm.
  139. PairwiseKeyIndex - Stores the index in the key array of the pairwise key.
  140. GroupKeyIndex - Stores the index in the key array of the group key.
  141. Flags - Stores a bitmask of encryption flags. See
  142. NET80211_ENCRYPTION_FLAG_* for definitions.
  143. Keys - Stores an array of keys for an authenticated connection.
  144. ApRsn - Stores a pointer to the RSN information gathered from the BSS's AP.
  145. StationRsn - Stores a pointer to the local RSN information for this station.
  146. --*/
  147. typedef struct _NET80211_ENCRYPTION {
  148. NETWORK_ENCRYPTION_TYPE Pairwise;
  149. NETWORK_ENCRYPTION_TYPE Group;
  150. ULONG PairwiseKeyIndex;
  151. ULONG GroupKeyIndex;
  152. ULONG Flags;
  153. PNET80211_KEY Keys[NET80211_MAX_KEY_COUNT];
  154. PVOID ApRsn;
  155. PVOID StationRsn;
  156. } NET80211_ENCRYPTION, *PNET80211_ENCRYPTION;
  157. /*++
  158. Structure Description:
  159. This structure defines an available BSS that is within range of the 802.11
  160. wireless device.
  161. Members:
  162. ListEntry - Stores pointers to the next and previous BSS entries.
  163. ReferenceCount - Stores the reference count on the BSS entry.
  164. LastUpdated - Stores the time counter value of when the BSS entry was last
  165. seen by a scan or beacon.
  166. State - Stores the BSS state.
  167. Encryption - Stores the encryption information for the BSS including the
  168. active keys.
  169. EapolHandle - Stores a pointer to the encryption handshake handle.
  170. Elements - Stores a pointer to the information elements for the BSS
  171. supplied by either a beacon or probe response.
  172. ElementsSize - Stores the size of the information elements in bytes.
  173. Flags - Stores a bitmask of flags describing the BSS entry. See
  174. NET80211_BSS_FLAG_* for definitions.
  175. Ssid - Stores the SSID element for the BSS. This is a pointer to the SSID
  176. element within the information elements buffer.
  177. PassphraseLength - Stores the number of characters in the passphrase.
  178. Passphrase - Stores the passphrase for the BSS.
  179. --*/
  180. typedef struct _NET80211_BSS_ENTRY {
  181. LIST_ENTRY ListEntry;
  182. volatile ULONG ReferenceCount;
  183. ULONGLONG LastUpdated;
  184. NET80211_BSS State;
  185. NET80211_ENCRYPTION Encryption;
  186. HANDLE EapolHandle;
  187. PVOID Elements;
  188. ULONG ElementsSize;
  189. ULONG Flags;
  190. PVOID Ssid;
  191. ULONG PassphraseLength;
  192. UCHAR Passphrase[NET80211_MAX_PASSPHRASE_LENGTH];
  193. } NET80211_BSS_ENTRY, *PNET80211_BSS_ENTRY;
  194. /*++
  195. Structure Description:
  196. This structure defines link information that is private to the 802.11 core.
  197. Members:
  198. NetworkLink - Stores a pointer to the networking core's link context.
  199. ReferenceCount - Stores the reference count of the link.
  200. State - Stores the current state of the 802.11 link.
  201. ProbePreviousState - Stores the state before the 802.11 link started
  202. probing.
  203. ProbeNextState - Stores the state that the 802.11 link should transition to
  204. after leaving the probe state.
  205. Flags - Stores a bitmask of flags describing the link.
  206. See NET80211_LINK_FLAG_* for definitions.
  207. SequenceNumber - Stores the current sequence for the 802.11 link.
  208. Lock - Stores a pointer to a queued lock that synchronizes access to the
  209. 802.11 link structure.
  210. ScanLock - Stores a pointer to a queued lock that synchronizes network
  211. scans. A scan is triggered before a network is ever joined, so this
  212. protects the link from joining a network while it's already in the
  213. middle of a scan.
  214. StateTimer - Stores a pointer to a timer used to monitor state transitions.
  215. TimeoutDpc- Stores a pointer to a DPC that is executed when the state timer
  216. expires.
  217. TimeoutWorkItem - Stores a pointer to a low level work item queued by the
  218. DPC on state transition timeouts.
  219. BssList - Stores a list of BSSs that are within range of this 802.11 device.
  220. ActiveBss - Stores a pointer to the BSS to which the link is attempting to
  221. connect or is already connected.
  222. PausedPacketList - Stores a list of paused 802.11 packets that are ready
  223. for transmission.
  224. Properites - Stores the 802.11 link properties.
  225. --*/
  226. struct _NET80211_LINK {
  227. PNET_LINK NetworkLink;
  228. volatile ULONG ReferenceCount;
  229. NET80211_STATE State;
  230. NET80211_STATE ProbePreviousState;
  231. NET80211_STATE ProbeNextState;
  232. ULONG Flags;
  233. volatile ULONG SequenceNumber;
  234. PQUEUED_LOCK Lock;
  235. PQUEUED_LOCK ScanLock;
  236. PKTIMER StateTimer;
  237. PDPC TimeoutDpc;
  238. PWORK_ITEM TimeoutWorkItem;
  239. LIST_ENTRY BssList;
  240. PNET80211_BSS_ENTRY ActiveBss;
  241. NET_PACKET_LIST PausedPacketList;
  242. NET80211_LINK_PROPERTIES Properties;
  243. };
  244. //
  245. // -------------------------------------------------------------------- Globals
  246. //
  247. //
  248. // -------------------------------------------------------- Function Prototypes
  249. //
  250. VOID
  251. Net80211pProcessManagementFrame (
  252. PNET80211_LINK Link,
  253. PNET_PACKET_BUFFER Packet
  254. );
  255. /*++
  256. Routine Description:
  257. This routine processes 802.11 management frames.
  258. Arguments:
  259. Link - Supplies a pointer to the 802.11 link on which the frame arrived.
  260. Packet - Supplies a pointer to the network packet.
  261. Return Value:
  262. None.
  263. --*/
  264. KSTATUS
  265. Net80211pStartScan (
  266. PNET80211_LINK Link,
  267. PNET80211_SCAN_STATE Parameters
  268. );
  269. /*++
  270. Routine Description:
  271. This routine starts a scan for one or more BSSs within range of this
  272. station.
  273. Arguments:
  274. Link - Supplies a pointer to the link on which to perform the scan.
  275. Parameters - Supplies a pointer to a scan state used to initialize the
  276. scan. This memory will not be referenced after the function returns,
  277. so this may be a stack allocated structure.
  278. Return Value:
  279. Status code.
  280. --*/
  281. VOID
  282. Net80211pSetState (
  283. PNET80211_LINK Link,
  284. NET80211_STATE State
  285. );
  286. /*++
  287. Routine Description:
  288. This routine sets the given link's 802.11 state by alerting the driver of
  289. the state change and then performing any necessary actions based on the
  290. state transition.
  291. Arguments:
  292. Link - Supplies a pointer to the 802.11 link whose state is being updated.
  293. State - Supplies the state to which the link is transitioning.
  294. Return Value:
  295. None.
  296. --*/
  297. PNET80211_BSS_ENTRY
  298. Net80211pGetBss (
  299. PNET80211_LINK Link
  300. );
  301. /*++
  302. Routine Description:
  303. This routine gets the link's active BSS entry and hands back a pointer with
  304. a reference to the caller.
  305. Arguments:
  306. Link - Supplies a pointer to the 802.11 link whose active BSS is to be
  307. returned.
  308. Return Value:
  309. Returns a pointer to the active BSS.
  310. --*/
  311. VOID
  312. Net80211pBssEntryAddReference (
  313. PNET80211_BSS_ENTRY BssEntry
  314. );
  315. /*++
  316. Routine Description:
  317. This routine increments the reference count of the given BSS entry.
  318. Arguments:
  319. BssEntry - Supplies a pointer to the BSS entry whose reference count is to
  320. be incremented.
  321. Return Value:
  322. None.
  323. --*/
  324. VOID
  325. Net80211pBssEntryReleaseReference (
  326. PNET80211_BSS_ENTRY BssEntry
  327. );
  328. /*++
  329. Routine Description:
  330. This routine decrements the reference count of the given BSS entry,
  331. destroying the entry if there are no more references.
  332. Arguments:
  333. BssEntry - Supplies a pointer to the BSS entry whose reference count is to
  334. be decremented.
  335. Return Value:
  336. None.
  337. --*/
  338. VOID
  339. Net80211pStateTimeoutDpcRoutine (
  340. PDPC Dpc
  341. );
  342. /*++
  343. Routine Description:
  344. This routine implements the 802.11 state transition timeout DPC that gets
  345. called after a remote node does not respond to a management frame.
  346. Arguments:
  347. Dpc - Supplies a pointer to the DPC that is running.
  348. Return Value:
  349. None.
  350. --*/
  351. VOID
  352. Net80211pStateTimeoutWorker (
  353. PVOID Parameter
  354. );
  355. /*++
  356. Routine Description:
  357. This routine performs the low level work when an 802.11 state transition
  358. times out due to a remote node not responding.
  359. Arguments:
  360. Parameter - Supplies a pointer to the nework link whose 802.11 state
  361. transition has timed out.
  362. Return Value:
  363. None.
  364. --*/
  365. PNET80211_BSS_ENTRY
  366. Net80211pLookupBssEntry (
  367. PNET80211_LINK Link,
  368. PUCHAR Bssid
  369. );
  370. /*++
  371. Routine Description:
  372. This routine searches the link for a known BSS entry with the given BSSID.
  373. It does not take a reference on the BSS entry and assumes that the link's
  374. lock is already held.
  375. Arguments:
  376. Link - Supplies a pointer to the 802.11 link on which to search.
  377. Bssid - Supplies a pointer to the BSSID for the desired BSS entry.
  378. Return Value:
  379. Returns a pointer to the matching BSS entry on success, or NULL on failure.
  380. --*/
  381. VOID
  382. Net80211pProcessControlFrame (
  383. PNET80211_LINK Link,
  384. PNET_PACKET_BUFFER Packet
  385. );
  386. /*++
  387. Routine Description:
  388. This routine processes an 802.11 control frame.
  389. Arguments:
  390. Link - Supplies a pointer to the 802.11 link on which the frame arrived.
  391. Packet - Supplies a pointer to the network packet.
  392. Return Value:
  393. None.
  394. --*/
  395. KSTATUS
  396. Net80211pSendDataFrames (
  397. PNET80211_LINK Link,
  398. PNET_PACKET_LIST PacketList,
  399. PNETWORK_ADDRESS SourcePhysicalAddress,
  400. PNETWORK_ADDRESS DestinationPhysicalAddress,
  401. ULONG ProtocolNumber
  402. );
  403. /*++
  404. Routine Description:
  405. This routine adds 802.2 SAP headers and 802.11 data frame headers to the
  406. given packets and sends them down the the device link layer.
  407. Arguments:
  408. Link - Supplies a pointer to the 802.11 link on which to send the data.
  409. PacketList - Supplies a pointer to a list of network packets to send. Data
  410. in these packets may be modified by this routine, but must not be used
  411. once this routine returns.
  412. SourcePhysicalAddress - Supplies a pointer to the source (local) physical
  413. network address.
  414. DestinationPhysicalAddress - Supplies the optional physical address of the
  415. destination, or at least the next hop. If NULL is provided, then the
  416. packets will be sent to the data link layer's broadcast address.
  417. ProtocolNumber - Supplies the protocol number of the data inside the data
  418. link header.
  419. Return Value:
  420. Status code.
  421. --*/
  422. VOID
  423. Net80211pProcessDataFrame (
  424. PNET80211_LINK Link,
  425. PNET_PACKET_BUFFER Packet
  426. );
  427. /*++
  428. Routine Description:
  429. This routine processes an 802.11 data frame.
  430. Arguments:
  431. Link - Supplies a pointer to the 802.11 link on which the frame arrived.
  432. Packet - Supplies a pointer to the network packet.
  433. Return Value:
  434. None.
  435. --*/
  436. VOID
  437. Net80211pPauseDataFrames (
  438. PNET80211_LINK Link
  439. );
  440. /*++
  441. Routine Description:
  442. This routine pauses the outgoing data frame traffic on the given network
  443. link. It assumes that the 802.11 link's queued lock is held.
  444. Arguments:
  445. Link - Supplies a pointer to the 802.11 link on which to pause the outgoing
  446. data frames.
  447. Return Value:
  448. None.
  449. --*/
  450. VOID
  451. Net80211pResumeDataFrames (
  452. PNET80211_LINK Link
  453. );
  454. /*++
  455. Routine Description:
  456. This routine resumes the outgoing data frame traffic on the given network
  457. link, flushing any packets that were held while the link was paused. It
  458. assumes that the 802.11 link's queued lock is held.
  459. Arguments:
  460. Link - Supplies a pointer to the 802.11 link on which to resume the
  461. outgoing data frames.
  462. Return Value:
  463. None.
  464. --*/
  465. ULONG
  466. Net80211pGetSequenceNumber (
  467. PNET80211_LINK Link
  468. );
  469. /*++
  470. Routine Description:
  471. This routine returns the sequence number to use for the given link.
  472. Arguments:
  473. Link - Supplies a pointer to the 802.11 link whose sequence number is
  474. requested.
  475. Return Value:
  476. Returns the sequence number to use for the given link.
  477. --*/
  478. KSTATUS
  479. Net80211pSetChannel (
  480. PNET80211_LINK Link,
  481. ULONG Channel
  482. );
  483. /*++
  484. Routine Description:
  485. This routine sets the 802.11 link's channel to the given value.
  486. Arguments:
  487. Link - Supplies a pointer to the 802.11 link whose channel is being updated.
  488. Channel - Supplies the channel to which the link should be set.
  489. Return Value:
  490. Status code.
  491. --*/
  492. VOID
  493. Net80211pDestroyKey (
  494. PNET80211_KEY Key
  495. );
  496. /*++
  497. Routine Description:
  498. This routine destroys the given 802.11 encryption key.
  499. Arguments:
  500. Key - Supplies a pointer to the key to be destroyed.
  501. Return Value:
  502. None.
  503. --*/
  504. KSTATUS
  505. Net80211pInitializeEncryption (
  506. PNET80211_LINK Link,
  507. PNET80211_BSS_ENTRY Bss
  508. );
  509. /*++
  510. Routine Description:
  511. This routine initializes the 802.11 core to handle the completion of an
  512. advanced encryption handshake.
  513. Arguments:
  514. Link - Supplies a pointer to the 802.11 link establishing an ecrypted
  515. connection.
  516. Bss - Supplies a pointer to the BSS on which the encryption handshake will
  517. take place.
  518. Return Value:
  519. Status code.
  520. --*/
  521. VOID
  522. Net80211pDestroyEncryption (
  523. PNET80211_BSS_ENTRY Bss
  524. );
  525. /*++
  526. Routine Description:
  527. This routine destroys the context used to handle encryption initialization.
  528. It is not necessary to keep this context once the encrypted state is
  529. reached.
  530. Arguments:
  531. Bss - Supplies a pointer to the BSS on which encryption initialization took
  532. place.
  533. Return Value:
  534. None.
  535. --*/
  536. KSTATUS
  537. Net80211pEncryptPacket (
  538. PNET80211_LINK Link,
  539. PNET80211_BSS_ENTRY Bss,
  540. PNET_PACKET_BUFFER Packet
  541. );
  542. /*++
  543. Routine Description:
  544. This routine encrypts the given network packet's plaintext data. The
  545. supplied packet buffer is modified directly and should already include the
  546. full MPDU (i.e. the 802.11 headers should be present).
  547. Arguments:
  548. Link - Supplies a pointer to the 802.11 network link that owns the packet.
  549. Bss - Supplies a pointer to the BSS over which this packet should be sent.
  550. Packet - Supplies a pointer to the packet to encrypt.
  551. Return Value:
  552. Status code.
  553. --*/
  554. KSTATUS
  555. Net80211pDecryptPacket (
  556. PNET80211_LINK Link,
  557. PNET80211_BSS_ENTRY Bss,
  558. PNET_PACKET_BUFFER Packet
  559. );
  560. /*++
  561. Routine Description:
  562. This routine decrypts the given network packet's ciphertext. The supplied
  563. packet buffer is modified directly and should contain the full encrypted
  564. MPDU, including the 802.11 headers.
  565. Arguments:
  566. Link - Supplies a pointer to the 802.11 network link that owns the packet.
  567. Bss - Supplies a pointer to the BSS over which this packet was received.
  568. Packet - Supplies a pointer to the packet to decrypt.
  569. Return Value:
  570. Status code.
  571. --*/
  572. KSTATUS
  573. Net80211pEapolInitialize (
  574. VOID
  575. );
  576. /*++
  577. Routine Description:
  578. This routine initializes support for EAPOL packets.
  579. Arguments:
  580. None.
  581. Return Value:
  582. Status code.
  583. --*/
  584. VOID
  585. Net80211pEapolDestroy (
  586. VOID
  587. );
  588. /*++
  589. Routine Description:
  590. This routine tears down support for EAPOL packets.
  591. Arguments:
  592. None.
  593. Return Value:
  594. None.
  595. --*/
  596. KSTATUS
  597. Net80211pNetlinkInitialize (
  598. VOID
  599. );
  600. /*++
  601. Routine Description:
  602. This routine initializes the generic netlink 802.11 family.
  603. Arguments:
  604. None.
  605. Return Value:
  606. Status code.
  607. --*/
  608. VOID
  609. Net80211pNetlinkDestroy (
  610. VOID
  611. );
  612. /*++
  613. Routine Description:
  614. This routine tears down support for the generic netlink 802.11 family.
  615. Arguments:
  616. None.
  617. Return Value:
  618. None.
  619. --*/