Mistake on this page?
Report an issue in GitHub or email us
WhdAccessPoint.h
1 /* WHD Access Point Interface
2  * Copyright (c) 2017-2019 ARM Limited
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef WHD_ACCESS_POINT_H
19 #define WHD_ACCESS_POINT_H
20 
21 #include "netsocket/WiFiAccessPoint.h"
22 #include "whd_types.h"
23 
24 /* Enum for scan result type */
25 enum scan_result_type {
26  SRES_TYPE_WIFI_ACCESS_POINT,
27  SRES_TYPE_WHD_ACCESS_POINT
28 };
29 
30 /** WhdAccessPoint class
31  *
32  * Class that represents a Whd Access Point
33  * which contains additional Whd specific information
34  */
36 public:
38  WhdAccessPoint(nsapi_wifi_ap_t ap, whd_bss_type_t bss_type, uint8_t *ie_ptr, uint32_t ie_len);
39 
40  /** Define move assignment and prevent copy-assignment
41  *
42  * Due to IE element data could have large memory footprint,
43  * only move assignment is allowed.
44  */
46  WhdAccessPoint &operator=(const WhdAccessPoint &rhs) = delete;
47 
48  /** Get WHD access point's bss type
49  *
50  * @return The whd_bss_type_t of the access point
51  */
53 
54  /** Get WHD access point's IE data
55  *
56  * @return The pointer to ie data buffer
57  */
58  uint8_t *get_ie_data() const;
59 
60  /** Get WHD access point's IE length
61  *
62  * @return The ie data length
63  */
64  uint32_t get_ie_len() const;
65 
66  virtual ~WhdAccessPoint();
67 
68 private:
69  whd_bss_type_t _bss_type;
70  uint8_t *_ie_ptr; /**< Pointer to received Beacon/Probe Response IE(Information Element) */
71  uint32_t _ie_len; /**< Length of IE(Information Element) */
72 };
73 
74 #endif
WiFiAccessPoint()
WiFiAccessPoint lifetime.
uint32_t get_ie_len() const
Get WHD access point&#39;s IE length.
Defines common data types used with WHD.
nsapi_wifi_ap structure
Definition: nsapi_types.h:355
uint8_t * get_ie_data() const
Get WHD access point&#39;s IE data.
WhdAccessPoint class.
WhdAccessPoint & operator=(WhdAccessPoint &&rhs)
Define move assignment and prevent copy-assignment.
whd_bss_type_t get_bss_type() const
Get WHD access point&#39;s bss type.
whd_bss_type_t
Enumeration of network types.
Definition: whd_types.h:231
WiFiAccessPoint class.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.