1 /*
2  * Copyright 2023, Cypress Semiconductor Corporation (an Infineon company)
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 #include "whd_ap.h"
19 #include "whd_chip_constants.h"
20 #include "whd_debug.h"
21 #include "whd_events_int.h"
22 #include "whd_sdpcm.h"
23 #include "whd_thread_internal.h"
24 #include "whd_utils.h"
25 #include "whd_wifi_api.h"
26 #include "whd_wifi_p2p.h"
27 
28 
29 /******************************************************
30 * @cond       Constants
31 ******************************************************/
32 
whd_wifi_p2p_is_go_up(whd_driver_t whd_driver)33 whd_bool_t whd_wifi_p2p_is_go_up(whd_driver_t whd_driver)
34 {
35     return whd_driver->internal_info.whd_wifi_p2p_go_is_up;
36 }
37 
whd_wifi_p2p_set_go_is_up(whd_driver_t whd_driver,whd_bool_t is_up)38 void whd_wifi_p2p_set_go_is_up(whd_driver_t whd_driver, whd_bool_t is_up)
39 {
40     if (whd_driver->internal_info.whd_wifi_p2p_go_is_up != is_up)
41     {
42         whd_driver->internal_info.whd_wifi_p2p_go_is_up = is_up;
43     }
44 }
45 
46