Commit 057b0a81 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: remove coreconfigurator.h file

Remove the coreconfigurator header file, as its source file is deleted
after code refactor. Moved the required structure and prototypes to
hostinterface header.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1116468b
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2012 - 2018 Microchip Technology Inc., and its subsidiaries.
* All rights reserved.
*/
#ifndef CORECONFIGURATOR_H
#define CORECONFIGURATOR_H
#include "wilc_wlan_if.h"
#define NUM_RSSI 5
#define SET_CFG 0
#define GET_CFG 1
#define MAX_ASSOC_RESP_FRAME_SIZE 256
struct rssi_history_buffer {
bool full;
u8 index;
s8 samples[NUM_RSSI];
};
struct network_info {
s8 rssi;
u16 cap_info;
u8 ssid[MAX_SSID_LEN];
u8 ssid_len;
u8 bssid[6];
u16 beacon_period;
u8 dtim_period;
u8 ch;
unsigned long time_scan_cached;
unsigned long time_scan;
bool new_network;
u8 found;
u32 tsf_lo;
u8 *ies;
u16 ies_len;
void *join_params;
struct rssi_history_buffer rssi_history;
u64 tsf_hi;
};
struct connect_info {
u8 bssid[6];
u8 *req_ies;
size_t req_ies_len;
u8 *resp_ies;
u16 resp_ies_len;
u16 status;
};
struct disconnect_info {
u16 reason;
u8 *ie;
size_t ie_len;
};
struct assoc_resp {
__le16 capab_info;
__le16 status_code;
__le16 aid;
} __packed;
void wilc_scan_complete_received(struct wilc *wilc, u8 *buffer, u32 length);
void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length);
void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *buffer, u32 length);
#endif
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef HOST_INT_H #ifndef HOST_INT_H
#define HOST_INT_H #define HOST_INT_H
#include <linux/ieee80211.h> #include <linux/ieee80211.h>
#include "coreconfigurator.h" #include "wilc_wlan_if.h"
#define IDLE_MODE 0x00 #define IDLE_MODE 0x00
#define AP_MODE 0x01 #define AP_MODE 0x01
...@@ -56,6 +56,61 @@ ...@@ -56,6 +56,61 @@
#define DRV_HANDLER_SIZE 5 #define DRV_HANDLER_SIZE 5
#define DRV_HANDLER_MASK 0x000000FF #define DRV_HANDLER_MASK 0x000000FF
#define NUM_RSSI 5
#define SET_CFG 0
#define GET_CFG 1
#define MAX_ASSOC_RESP_FRAME_SIZE 256
struct rssi_history_buffer {
bool full;
u8 index;
s8 samples[NUM_RSSI];
};
struct network_info {
s8 rssi;
u16 cap_info;
u8 ssid[MAX_SSID_LEN];
u8 ssid_len;
u8 bssid[6];
u16 beacon_period;
u8 dtim_period;
u8 ch;
unsigned long time_scan_cached;
unsigned long time_scan;
bool new_network;
u8 found;
u32 tsf_lo;
u8 *ies;
u16 ies_len;
void *join_params;
struct rssi_history_buffer rssi_history;
u64 tsf_hi;
};
struct connect_info {
u8 bssid[6];
u8 *req_ies;
size_t req_ies_len;
u8 *resp_ies;
u16 resp_ies_len;
u16 status;
};
struct disconnect_info {
u16 reason;
u8 *ie;
size_t ie_len;
};
struct assoc_resp {
__le16 capab_info;
__le16 status_code;
__le16 aid;
} __packed;
struct rf_info { struct rf_info {
u8 link_speed; u8 link_speed;
s8 rssi; s8 rssi;
...@@ -358,5 +413,7 @@ void wilc_resolve_disconnect_aberration(struct wilc_vif *vif); ...@@ -358,5 +413,7 @@ void wilc_resolve_disconnect_aberration(struct wilc_vif *vif);
int wilc_get_vif_idx(struct wilc_vif *vif); int wilc_get_vif_idx(struct wilc_vif *vif);
int wilc_set_tx_power(struct wilc_vif *vif, u8 tx_power); int wilc_set_tx_power(struct wilc_vif *vif, u8 tx_power);
int wilc_get_tx_power(struct wilc_vif *vif, u8 *tx_power); int wilc_get_tx_power(struct wilc_vif *vif, u8 *tx_power);
void wilc_scan_complete_received(struct wilc *wilc, u8 *buffer, u32 length);
void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length);
void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *buffer, u32 length);
#endif #endif
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include "wilc_wlan_if.h" #include "wilc_wlan_if.h"
#include "wilc_wlan.h" #include "wilc_wlan.h"
#include "wilc_wlan_cfg.h" #include "wilc_wlan_cfg.h"
#include "coreconfigurator.h"
#include "wilc_wfi_netdevice.h" #include "wilc_wfi_netdevice.h"
enum cfg_cmd_type { enum cfg_cmd_type {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment