|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Class holding all connection related data |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 33 % |
|
20 */ |
|
21 |
|
22 #ifndef CORE_CONNECTION_DATA_H |
|
23 #define CORE_CONNECTION_DATA_H |
|
24 |
|
25 #include "genscaninfo.h" |
|
26 #include "core_types.h" |
|
27 #include "core_type_list.h" |
|
28 #include "core_ap_data.h" |
|
29 #include "core_iap_data.h" |
|
30 #include "core_scan_channels.h" |
|
31 #include "core_traffic_stream_list.h" |
|
32 #include "core_virtual_traffic_stream_list.h" |
|
33 |
|
34 /** |
|
35 * Structure for storing AP failure count. |
|
36 */ |
|
37 struct core_ap_failure_count_s |
|
38 { |
|
39 core_mac_address_s bssid; ///< BSSID of the AP. |
|
40 u8_t count; ///< The number of failures. |
|
41 }; |
|
42 |
|
43 /** |
|
44 * Structure for storing AP authentication failure count. |
|
45 */ |
|
46 struct core_ap_auth_failure_count_s |
|
47 { |
|
48 core_mac_address_s bssid; ///< BSSID of the AP. |
|
49 u8_t count; ///< The number of authentication failures. |
|
50 }; |
|
51 |
|
52 /** |
|
53 * Structure for storing AP power save test verdicts. |
|
54 */ |
|
55 struct core_ap_power_save_test_verdict_s |
|
56 { |
|
57 core_mac_address_s bssid; ///< BSSID of the AP. |
|
58 bool_t is_success; ///< Whether power save test was successful |
|
59 }; |
|
60 |
|
61 /** |
|
62 * Class holding all connection related data |
|
63 * @lib wlmserversrv.lib |
|
64 * @since S60 v3.1 |
|
65 */ |
|
66 NONSHARABLE_CLASS( core_connection_data_c ) |
|
67 { |
|
68 |
|
69 public: |
|
70 |
|
71 /** |
|
72 * Constructor |
|
73 */ |
|
74 core_connection_data_c( |
|
75 const core_iap_data_s& iap_data, |
|
76 const core_device_settings_s& device_settings ); |
|
77 |
|
78 /** |
|
79 * Destructor |
|
80 */ |
|
81 ~core_connection_data_c(); |
|
82 |
|
83 /** |
|
84 * Return IAP specific data for the current connection. |
|
85 * |
|
86 * @since S60 v3.1 |
|
87 * @return IAP specific data of the connection |
|
88 */ |
|
89 core_iap_data_c& iap_data(); |
|
90 |
|
91 /** |
|
92 * connect_status |
|
93 * |
|
94 * @since S60 v3.1 |
|
95 * @return connect status of the connection |
|
96 */ |
|
97 core_connect_status_e connect_status() const; |
|
98 |
|
99 /** |
|
100 * set_connect_status |
|
101 * |
|
102 * @since S60 v3.1 |
|
103 * @param connect_status specifying the status of the connection |
|
104 * (either OK or an error code) |
|
105 */ |
|
106 void set_connect_status( |
|
107 core_connect_status_e connect_status ); |
|
108 |
|
109 /** |
|
110 * set_current_ap_data |
|
111 * |
|
112 * @since S60 v3.1 |
|
113 * @param access point specific data |
|
114 */ |
|
115 void set_current_ap_data( |
|
116 const core_ap_data_c& ap_data ); |
|
117 |
|
118 /** |
|
119 * current_ap_data |
|
120 * |
|
121 * @since S60 v3.1 |
|
122 * @return access point specific data |
|
123 */ |
|
124 core_ap_data_c* current_ap_data(); |
|
125 |
|
126 /** |
|
127 * set_previous_ap_data |
|
128 * |
|
129 * @since S60 v3.1 |
|
130 * @param access point specific data |
|
131 */ |
|
132 void set_previous_ap_data( |
|
133 const core_ap_data_c& ap_data ); |
|
134 |
|
135 /** |
|
136 * previous_ap_data |
|
137 * |
|
138 * @since S60 v3.1 |
|
139 * @return access point specific data |
|
140 */ |
|
141 core_ap_data_c* previous_ap_data(); |
|
142 |
|
143 /** |
|
144 * ssid |
|
145 * |
|
146 * @since S60 v3.1 |
|
147 * return SSID of the connection |
|
148 */ |
|
149 const core_ssid_s& ssid() const; |
|
150 |
|
151 /** |
|
152 * set_ssid |
|
153 * |
|
154 * @since S60 v3.1 |
|
155 * @param SSID of the connection |
|
156 */ |
|
157 void set_ssid( const core_ssid_s& ssid ); |
|
158 |
|
159 /** |
|
160 * Check whether the given MAC address is permanently blacklisted. |
|
161 * |
|
162 * @since S60 v3.1 |
|
163 * @param mac MAC address to be checked. |
|
164 * @return Whether the given MAC address is permanently blacklisted. |
|
165 */ |
|
166 bool_t is_mac_in_temporary_blacklist( |
|
167 const core_mac_address_s& mac ); |
|
168 |
|
169 /** |
|
170 * Add a MAC address to the permanent blacklist. |
|
171 * |
|
172 * @since S60 v3.1 |
|
173 * @param mac MAC address to be added. |
|
174 * @param reason Reason for the blacklist. |
|
175 */ |
|
176 void add_mac_to_temporary_blacklist( |
|
177 const core_mac_address_s& mac, |
|
178 core_ap_blacklist_reason_e reason ); |
|
179 |
|
180 /** |
|
181 * Remove a MAC address from the permanent blacklist. |
|
182 * |
|
183 * @since S60 v3.1 |
|
184 * @param mac MAC address to be removed. |
|
185 */ |
|
186 void remove_mac_from_temporary_blacklist( |
|
187 const core_mac_address_s& mac ); |
|
188 |
|
189 /** |
|
190 * Return the temporary blacklist. |
|
191 * |
|
192 * @since S60 v3.2 |
|
193 * @return The temporary blacklist. |
|
194 */ |
|
195 core_type_list_c<core_ap_blacklist_entry_s>& temporary_blacklist(); |
|
196 |
|
197 /** |
|
198 * Remove the entries blacklisted with one of the given reasons. |
|
199 * |
|
200 * @since S60 v3.1 |
|
201 * @param reasons Bitmap of reasons to remove. |
|
202 */ |
|
203 void remove_temporary_blacklist_entries( |
|
204 u32_t reasons ); |
|
205 |
|
206 /** |
|
207 * Return the last RCPI class notified to the clients. |
|
208 * |
|
209 * @since S60 v3.1 |
|
210 * @return The last RCPI class notified to the clients. |
|
211 */ |
|
212 core_rcp_class_e last_rcp_class() const; |
|
213 |
|
214 /** |
|
215 * Set the last RCPI class notified to the clients. |
|
216 * |
|
217 * @since S60 v3.1 |
|
218 * @param type The last RCPI class notified to the clients. |
|
219 */ |
|
220 void set_last_rcp_class( |
|
221 core_rcp_class_e type ); |
|
222 |
|
223 /** |
|
224 * Return the last TX level notified to the clients. |
|
225 * |
|
226 * @since S60 v3.1 |
|
227 * @return The last TX level notified to the clients. |
|
228 */ |
|
229 u32_t last_tx_level() const; |
|
230 |
|
231 /** |
|
232 * Set the last TX level notified to the clients. |
|
233 * |
|
234 * @since S60 v3.1 |
|
235 * @param type The last TX level notified to the clients. |
|
236 */ |
|
237 void set_last_tx_level( |
|
238 u32_t tx_level ); |
|
239 |
|
240 /** |
|
241 * Return the last BSSID notified to the clients. |
|
242 * |
|
243 * @since S60 v3.1 |
|
244 * @return The last BSSID notified to the clients. |
|
245 */ |
|
246 const core_mac_address_s& last_bssid() const; |
|
247 |
|
248 /** |
|
249 * Set the last BSSID notified to the clients. |
|
250 * |
|
251 * @since S60 v3.1 |
|
252 * @param type The last BSSID notified to the clients. |
|
253 */ |
|
254 void set_last_bssid( |
|
255 const core_mac_address_s& bssid ); |
|
256 |
|
257 /** |
|
258 * Return the connection state. |
|
259 * NOTE: This should only be called when there exists some connection. |
|
260 * |
|
261 * @since S60 v3.1 |
|
262 * @return type of the connection: {secure|insecure} {infrastructure|ad hoc} network |
|
263 */ |
|
264 core_connection_state_e connection_state() const; |
|
265 |
|
266 /** |
|
267 * Return the last connection state notified to the clients. |
|
268 * NOTE: This should not be considered as the actual/official WLAN connection state |
|
269 * (use core_settings_c::connection_state() instead). |
|
270 * |
|
271 * @since S60 v3.1 |
|
272 * @return The last connection state notified to the clients. |
|
273 */ |
|
274 core_connection_state_e last_connection_state() const; |
|
275 |
|
276 /** |
|
277 * Set the last connection state notified to the clients. |
|
278 * NOTE: This should not be considered as the actual/official WLAN connection state |
|
279 * (use core_settings_c::set_connection_state() instead). |
|
280 * |
|
281 * @since S60 v3.1 |
|
282 * @param type The last connection state notified to the clients. |
|
283 */ |
|
284 void set_last_connection_state( |
|
285 core_connection_state_e state ); |
|
286 |
|
287 /** |
|
288 * Return the number of association failures to the given AP. |
|
289 * |
|
290 * @param bssid BSSID of the AP to check. |
|
291 * @return The number of association failures. |
|
292 */ |
|
293 u8_t ap_association_failure_count( |
|
294 const core_mac_address_s& bssid ); |
|
295 |
|
296 /** |
|
297 * Increase the given AP association failure count by one. |
|
298 * |
|
299 * @param bssid BSSID of the AP. |
|
300 */ |
|
301 void increase_ap_association_failure_count( |
|
302 const core_mac_address_s& bssid ); |
|
303 |
|
304 /** |
|
305 * Clear the association failure count for the given AP. |
|
306 */ |
|
307 void clear_ap_association_failure_count( |
|
308 const core_mac_address_s& bssid ); |
|
309 |
|
310 /** |
|
311 * Return the number of authentication failures to the given AP. |
|
312 * |
|
313 * @param bssid BSSID of the AP to check. |
|
314 * @return The number of association failures. |
|
315 */ |
|
316 u8_t ap_authentication_failure_count( |
|
317 const core_mac_address_s& bssid ); |
|
318 |
|
319 /** |
|
320 * Increase the given AP authentication failure count by one. |
|
321 * |
|
322 * @param bssid BSSID of the AP. |
|
323 */ |
|
324 void increase_ap_authentication_failure_count( |
|
325 const core_mac_address_s& bssid ); |
|
326 |
|
327 /** |
|
328 * Clear all authentication failure counts. |
|
329 */ |
|
330 void clear_all_authentication_failure_counts(); |
|
331 |
|
332 |
|
333 /** |
|
334 * Return the number of deauthentications. |
|
335 * |
|
336 * @param bssid BSSID of the AP to check. |
|
337 * @return The number of deauthentications. |
|
338 */ |
|
339 u8_t ap_deauthentication_count( |
|
340 const core_mac_address_s& bssid ); |
|
341 |
|
342 /** |
|
343 * Increase the given AP's deauthentication count. |
|
344 * |
|
345 * @param bssid BSSID of the AP. |
|
346 */ |
|
347 void increase_ap_deauthentication_count( |
|
348 const core_mac_address_s& bssid ); |
|
349 |
|
350 /** |
|
351 * Get the last failed EAP-type. |
|
352 * |
|
353 * @since S60 v3.1 |
|
354 * @return The last failed EAP-type. |
|
355 */ |
|
356 u32_t last_failed_eap_type() const; |
|
357 |
|
358 /** |
|
359 * Set the last failed EAP-type. |
|
360 * |
|
361 * @since S60 v3.1 |
|
362 * @param type The last failed EAP-type. |
|
363 */ |
|
364 void set_last_failed_eap_type( |
|
365 u32_t type ); |
|
366 |
|
367 /** |
|
368 * Get the last EAP-specific error code. |
|
369 * |
|
370 * @since S60 v3.1 |
|
371 * @return The last EAP-specific error code. |
|
372 */ |
|
373 u32_t last_eap_error() const; |
|
374 |
|
375 /** |
|
376 * Set the last EAP-specific error code. |
|
377 * |
|
378 * @since S60 v3.1 |
|
379 * @param error The last EAP-specific error code. |
|
380 */ |
|
381 void set_last_eap_error( |
|
382 u32_t error ); |
|
383 |
|
384 /** |
|
385 * Return a channel mask of suitable APs based on the |
|
386 * information received from an AP. |
|
387 * |
|
388 * @since S60 v3.1 |
|
389 * @return A channel mask of suitable APs. |
|
390 */ |
|
391 const core_scan_channels_c& adjacent_ap_channels() const; |
|
392 |
|
393 /** |
|
394 * Store a channel mask of suitable APs based on the |
|
395 * information received from an AP. |
|
396 * |
|
397 * @since S60 v3.1 |
|
398 * @param channels A channel mask of suitable APs. |
|
399 */ |
|
400 void set_adjacent_ap_channels( |
|
401 const core_scan_channels_c& channels ); |
|
402 |
|
403 /** |
|
404 * Merge a channel mask of suitable APs based on the |
|
405 * information received from an AP. |
|
406 * |
|
407 * @since S60 v5.2 |
|
408 * @param channels A channel mask of suitable APs. |
|
409 */ |
|
410 void merge_adjacent_ap_channels( |
|
411 const core_scan_channels_c& channels ); |
|
412 |
|
413 /** |
|
414 * Check whether EAPOL authentication has been started. |
|
415 * |
|
416 * @since S60 v3.1 |
|
417 * @return Whether EAPOL authentication has been started. |
|
418 */ |
|
419 bool_t is_eapol_authentication_started() const; |
|
420 |
|
421 /** |
|
422 * Set the status of EAPOL authentication. |
|
423 * |
|
424 * This status indicates whether WLAN engine has called |
|
425 * start_reassociation() or start_authentication(). |
|
426 * |
|
427 * @since S60 v3.1 |
|
428 * @param is_authentication_started Whether EAPOL authentication has been started. |
|
429 */ |
|
430 void set_eapol_authentication_started( |
|
431 bool_t is_authentication_started ); |
|
432 |
|
433 /** |
|
434 * Check whether EAPOL is running an authentication. |
|
435 * |
|
436 * @since S60 v3.1 |
|
437 * @return Whether EAPOL is running an authentication. |
|
438 */ |
|
439 bool_t is_eapol_authenticating() const; |
|
440 |
|
441 /** |
|
442 * Set the status of EAPOL authentication. |
|
443 * |
|
444 * This status indicates whether EAPOL has signaled it has |
|
445 * started running EAP authentication and/or 4-way handshake. |
|
446 * |
|
447 * @since S60 v3.1 |
|
448 * @param is_authenticating Whether EAPOL is running an authentication. |
|
449 */ |
|
450 void set_eapol_authenticating( |
|
451 bool_t is_authenticating ); |
|
452 |
|
453 /** |
|
454 * Get the BSSID currently being authenticated against. |
|
455 * |
|
456 * @since S60 v3.1 |
|
457 * @return The BSSID currently being authenticated against. |
|
458 */ |
|
459 const core_mac_address_s& eapol_auth_bssid() const; |
|
460 |
|
461 /** |
|
462 * Get the BSSID currently being authenticated against. |
|
463 * |
|
464 * @since S60 v3.1 |
|
465 * @param bssid The BSSID currently being authenticated against. |
|
466 */ |
|
467 void set_eapol_auth_bssid( |
|
468 const core_mac_address_s& bssid ); |
|
469 |
|
470 /** |
|
471 * Return the list of active traffic streams. |
|
472 * |
|
473 * @since S60 v3.2 |
|
474 * @return The list of active traffic streams. |
|
475 */ |
|
476 core_traffic_stream_list_c& traffic_stream_list(); |
|
477 |
|
478 /** |
|
479 * Return the list of virtual traffic streams. |
|
480 * |
|
481 * @since S60 v3.2 |
|
482 * @return The list of active traffic streams. |
|
483 */ |
|
484 core_virtual_traffic_stream_list_c& virtual_traffic_stream_list(); |
|
485 |
|
486 /** |
|
487 * Check whether EAPOL is connecting. |
|
488 * |
|
489 * @since S60 v3.1 |
|
490 * @return Whether EAPOL is connecting. |
|
491 */ |
|
492 bool_t is_eapol_connecting() const; |
|
493 |
|
494 /** |
|
495 * Set the status of EAPOL connection. |
|
496 * |
|
497 * @since S60 v3.1 |
|
498 * @param is_eapol_connecting Whether EAPOL is connecting. |
|
499 */ |
|
500 void set_eapol_connecting( |
|
501 bool_t is_eapol_connecting ); |
|
502 |
|
503 /** |
|
504 * Check whether disconnection is ongoing. |
|
505 * |
|
506 * @since S60 v3.2 |
|
507 * @return Whether disconnection is ongoing. |
|
508 */ |
|
509 bool_t is_disconnecting() const; |
|
510 |
|
511 /** |
|
512 * Set the status of disconnection. |
|
513 * |
|
514 * @since S60 v3.2 |
|
515 * @param is_disconnecting Whether disconnection is ongoing. |
|
516 */ |
|
517 void set_disconnecting( |
|
518 bool_t is_disconnecting ); |
|
519 |
|
520 /** |
|
521 * Get the current RCPI roam check interval values. |
|
522 * |
|
523 * @since S60 v3.2 |
|
524 * @return The current RCPI roam check interval values. |
|
525 */ |
|
526 const core_rcpi_roam_interval_s& rcpi_roam_interval() const; |
|
527 |
|
528 /** |
|
529 * Set the current RCPI roam check interval values back to initial values. |
|
530 * |
|
531 * @since S60 v3.2 |
|
532 */ |
|
533 void reset_rcpi_roam_interval(); |
|
534 |
|
535 /** |
|
536 * Set the current RCPI roam check interval values. |
|
537 * |
|
538 * @since S60 v3.2 |
|
539 * @param interval The current RCPI roam check interval values. |
|
540 */ |
|
541 void set_core_rcpi_roam_interval( |
|
542 const core_rcpi_roam_interval_s& interval ); |
|
543 |
|
544 /** |
|
545 * Get the reason for the last roam. |
|
546 * |
|
547 * @since S60 v3.2 |
|
548 * @return The reason for the last roam. |
|
549 */ |
|
550 core_roam_reason_e last_roam_reason() const; |
|
551 |
|
552 /** |
|
553 * Set the reason for the last roam. |
|
554 * |
|
555 * @since S60 v3.2 |
|
556 * @param reason The reason for the last roam. |
|
557 */ |
|
558 void set_last_roam_reason( |
|
559 core_roam_reason_e reason ); |
|
560 |
|
561 /** |
|
562 * Get the reason for the last roam failure. |
|
563 * |
|
564 * @since S60 v3.2 |
|
565 * @return The reason for the last roam failure. |
|
566 */ |
|
567 core_roam_failed_reason_e last_roam_failed_reason() const; |
|
568 |
|
569 /** |
|
570 * Set the reason for the last roam failure. |
|
571 * |
|
572 * @since S60 v3.2 |
|
573 * @param reason The reason for the last roam failure. |
|
574 */ |
|
575 void set_last_roam_failed_reason( |
|
576 core_roam_failed_reason_e reason ); |
|
577 |
|
578 /** |
|
579 * Check whether power save test has been run on the given AP. |
|
580 * |
|
581 * @param bssid BSSID of the AP to check. |
|
582 * @param is_success Whether the test was successful or not. |
|
583 * @return Whether power save test has been run on the given AP. |
|
584 */ |
|
585 bool_t is_ap_power_save_test_run( |
|
586 const core_mac_address_s& bssid, |
|
587 bool_t& is_success ); |
|
588 |
|
589 /** |
|
590 * Set the power save test verdict on the given the AP. |
|
591 * |
|
592 * @param bssid BSSID of the AP. |
|
593 * @param is_success Whether the test was successful or not. |
|
594 */ |
|
595 void add_ap_power_save_test_verdict( |
|
596 const core_mac_address_s& bssid, |
|
597 bool_t is_success ); |
|
598 |
|
599 /** |
|
600 * Check whether EAPOL requires to do new connect right after failed authentication. |
|
601 * |
|
602 * @since S60 v3.2 |
|
603 * @return Whether immediate reconnect is required. |
|
604 */ |
|
605 bool_t is_eapol_require_immediate_reconnect() const; |
|
606 |
|
607 /** |
|
608 * Set the state that EAPOL requires to do new connect right after failed authentication. |
|
609 * |
|
610 * @since S60 v3.2 |
|
611 * @param is_immediate_reconnect_required Whether EAPOL requires immediate reconnect |
|
612 * after failed authentication. |
|
613 */ |
|
614 void set_eapol_require_immediate_reconnect( |
|
615 bool_t is_immediate_reconnect_required ); |
|
616 |
|
617 /** |
|
618 * Check whether voice call is currently on. |
|
619 * |
|
620 * @since S60 v5.2 |
|
621 * @return Whether voice call is on. |
|
622 */ |
|
623 bool_t voice_call_state() const; |
|
624 |
|
625 /** |
|
626 * Set voice call state. |
|
627 * |
|
628 * @since S60 v5.2 |
|
629 * @param is_voice_call_on Voice call state to set. |
|
630 */ |
|
631 void set_voice_call_state( const bool_t& is_voice_call_on ); |
|
632 |
|
633 /** |
|
634 * Get previous RRM Measurement Request time. |
|
635 * |
|
636 * @since S60 v5.2 |
|
637 * @return Timestamp when the previous request |
|
638 * was received. |
|
639 */ |
|
640 const u64_t& get_previous_rrm_measurement_request_time() const; |
|
641 |
|
642 /** |
|
643 * Set previous RRM Measurement Request time. |
|
644 * |
|
645 * @since S60 v5.2 |
|
646 * @param timestamp Timestamp to set. |
|
647 */ |
|
648 void set_previous_rrm_measurement_request_time( const u64_t& timestamp ); |
|
649 |
|
650 /** |
|
651 * Get the current traffic status for the given access class. |
|
652 * |
|
653 * @since S60 v5.2 |
|
654 * @param access_class Access class to get. |
|
655 * @return Current traffic status for the given access class. |
|
656 */ |
|
657 core_access_class_traffic_status_e ac_traffic_status( |
|
658 core_access_class_e access_class ) const; |
|
659 |
|
660 /** |
|
661 * Set the current traffic status for the given access class. |
|
662 * |
|
663 * @since S60 v5.2 |
|
664 * @param access_class Access class to set. |
|
665 * @param status Traffic status to set. |
|
666 */ |
|
667 void set_ac_traffic_status( |
|
668 core_access_class_e access_class, |
|
669 core_access_class_traffic_status_e status ); |
|
670 |
|
671 /** |
|
672 * Get the current traffic mode for the given access class. |
|
673 * |
|
674 * @since S60 v5.2 |
|
675 * @param access_class Access class to get. |
|
676 * @return Current traffic mode for the given access class. |
|
677 */ |
|
678 core_access_class_traffic_mode_e ac_traffic_mode( |
|
679 core_access_class_e access_class ) const; |
|
680 |
|
681 /** |
|
682 * Set the current traffic mode for the given access class. |
|
683 * |
|
684 * @since S60 v5.2 |
|
685 * @param access_class Access class to set. |
|
686 * @param status Traffic mode to set. |
|
687 */ |
|
688 void set_ac_traffic_mode( |
|
689 core_access_class_e access_class, |
|
690 core_access_class_traffic_mode_e mode ); |
|
691 |
|
692 private: // data |
|
693 |
|
694 /** Adaptation side data about the WLAN connection */ |
|
695 core_iap_data_c iap_data_m; |
|
696 |
|
697 /** Handle to device settings. */ |
|
698 const core_device_settings_s& device_settings_m; |
|
699 |
|
700 /** Connect status from adaptation */ |
|
701 core_connect_status_e connect_status_m; |
|
702 |
|
703 /** Previous AP data */ |
|
704 core_ap_data_c* previous_ap_m; |
|
705 |
|
706 /** Current AP data */ |
|
707 core_ap_data_c* current_ap_m; |
|
708 |
|
709 /** SSID */ |
|
710 core_ssid_s ssid_m; |
|
711 |
|
712 /** Temporary blacklist of APs. */ |
|
713 core_type_list_c<core_ap_blacklist_entry_s> temp_blacklist_m; |
|
714 |
|
715 /** The RCPI class last notified. */ |
|
716 core_rcp_class_e last_rcp_class_m; |
|
717 |
|
718 /** The TX level last notified. */ |
|
719 u32_t last_tx_level_m; |
|
720 |
|
721 /** The BSSID last notified. */ |
|
722 core_mac_address_s last_bssid_m; |
|
723 |
|
724 /** The connection state last notified. */ |
|
725 core_connection_state_e last_connection_state_m; |
|
726 |
|
727 /** List for storing AP association failure counts. */ |
|
728 core_type_list_c<core_ap_failure_count_s> association_failure_count_m; |
|
729 |
|
730 /** List for storing AP authentication failure counts. */ |
|
731 core_type_list_c<core_ap_auth_failure_count_s> authentication_failure_count_m; |
|
732 |
|
733 /** List for storing AP deauthentication counts. */ |
|
734 core_type_list_c<core_ap_failure_count_s> deauthentication_count_m; |
|
735 |
|
736 /** The last failed EAP type. */ |
|
737 u32_t last_eap_type_m; |
|
738 |
|
739 /** The last EAP-specific error code. */ |
|
740 u32_t last_eap_error_code_m; |
|
741 |
|
742 /** A channel mask of suitable APs. */ |
|
743 core_scan_channels_c adjacent_ap_channels_m; |
|
744 |
|
745 /** Whether EAPOL authentication has been started. */ |
|
746 bool_t is_eapol_authentication_started_m; |
|
747 |
|
748 /** Whether EAPOL is running an authentication. */ |
|
749 bool_t is_eapol_authenticating_m; |
|
750 |
|
751 /** The BSSID currently being authenticated against. */ |
|
752 core_mac_address_s eapol_auth_bssid_m; |
|
753 |
|
754 /** List of active traffic streams. */ |
|
755 core_traffic_stream_list_c traffic_stream_list_m; |
|
756 |
|
757 /** List of virtual traffic streams. */ |
|
758 core_virtual_traffic_stream_list_c virtual_traffic_stream_list_m; |
|
759 |
|
760 /** Whether EAPOL is connecting. */ |
|
761 bool_t is_eapol_connecting_m; |
|
762 |
|
763 /** Whether disconnection is ongoing. */ |
|
764 bool_t is_disconnecting_m; |
|
765 |
|
766 /** The reason for the last roam. */ |
|
767 core_roam_reason_e last_roam_reason_m; |
|
768 |
|
769 /** The reason for the last roam failure. */ |
|
770 core_roam_failed_reason_e last_roam_failed_reason_m; |
|
771 |
|
772 /** The current RCPI roam check interval values. */ |
|
773 core_rcpi_roam_interval_s rcpi_roam_interval_m; |
|
774 |
|
775 /** Power save test verdicts. */ |
|
776 core_type_list_c<core_ap_power_save_test_verdict_s> power_save_test_verdict_m; |
|
777 |
|
778 /** Whether EAPOL requires to do new connect right after failed authentication. */ |
|
779 bool_t is_eapol_require_immediate_reconnect_m; |
|
780 |
|
781 /** Whether voice call is on. */ |
|
782 bool_t is_voice_call_on_m; |
|
783 |
|
784 /** Previous RRM Measurement Request time. */ |
|
785 u64_t previous_rrm_measurement_request_time_m; |
|
786 |
|
787 /** Current traffic status for access classes. */ |
|
788 core_access_class_traffic_status_e ac_traffic_status_m[MAX_QOS_ACCESS_CLASS]; |
|
789 |
|
790 /** Current traffic mode for access classes. */ |
|
791 core_access_class_traffic_mode_e ac_traffic_mode_m[MAX_QOS_ACCESS_CLASS]; |
|
792 }; |
|
793 |
|
794 #endif // CORE_CONNECTION_DATA_H |