wifi_drv: enable soft RFKILL and new front end

* TODO
This commit is contained in:
Josef Söntgen
2018-07-04 17:13:16 +02:00
committed by Christian Helmuth
parent 4a47b7cb41
commit ec9e8ecfaa
35 changed files with 2545 additions and 669 deletions

View File

@ -0,0 +1,45 @@
/*
* \brief Wpa_supplicant CTRL interface
* \author Josef Soentgen
* \date 2018-07-31
*/
/*
* Copyright (C) 2018 Genode Labs GmbH
*
* This file is distributed under the terms of the GNU General Public License
* version 2.
*/
#ifndef _WIFI__CTRL_H_
#define _WIFI__CTRL_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define WPA_CTRL_FD 51
struct Msg_buffer
{
unsigned char recv[4096];
unsigned char send[1024];
unsigned recv_id;
unsigned send_id;
unsigned char event[1024];
unsigned event_id;
} __attribute__((packed));
void wpa_ctrl_set_fd(void);
void *wifi_get_buffer(void);
void wifi_notify_cmd_result(void);
void wifi_notify_event(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _WIFI__CTRL_H_ */

View File

@ -0,0 +1,26 @@
/*
* \brief RFKILL interface
* \author Josef Soentgen
* \date 2018-07-11
*/
/*
* Copyright (C) 2018 Genode Labs GmbH
*
* This file is distributed under the terms of the GNU General Public License
* version 2.
*/
#ifndef _WIFI__RFKILL_H_
#define _WIFI__RFKILL_H_
namespace Wifi {
enum { RFKILL_FD = 42, };
}
bool wifi_get_rfkill(void);
void wifi_set_rfkill(bool);
#endif /* _WIFI__RFKILL_H_ */