kfree(msg);
}
-static s32 handle_scan_done(struct wilc_vif *vif, enum scan_event evt)
+static int handle_scan_done(struct wilc_vif *vif, enum scan_event evt)
{
- s32 result = 0;
+ int result = 0;
u8 abort_running_scan;
struct wid wid;
struct host_if_drv *hif_drv = vif->hif_drv;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct scan_attr *scan_info = &msg->body.scan_info;
- s32 result = 0;
+ int result = 0;
struct wid wid_list[5];
u32 index = 0;
u32 i;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct connect_attr *conn_attr = &msg->body.con_info;
- s32 result = 0;
+ int result = 0;
struct wid wid_list[8];
u32 wid_cnt = 0, dummyval = 0;
u8 *cur_byte = NULL;
{
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
- s32 result;
+ int result;
struct connect_info info;
struct wid wid;
u16 dummy_reason_code = 0;
u32 max_assoc_resp_info_len,
u32 *rcvd_assoc_resp_info_len)
{
- s32 result;
+ int result;
struct wid wid;
wid.id = WID_ASSOC_RES_INFO;
struct disconnect_info disconn_info;
struct user_scan_req *scan_req;
struct user_conn_req *conn_req;
- s32 result;
+ int result;
u16 dummy_reason_code = 0;
wid.id = WID_DISCONNECT;
{
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
- s32 result;
+ int result;
struct wid wid;
wid.id = WID_RSSI;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct sta_inactive_t *hif_sta_inactive = &msg->body.mac_info;
- s32 result;
+ int result;
struct wid wid;
wid.id = WID_SET_STA_MAC_INACTIVE_TIME;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct beacon_attr *param = &msg->body.beacon_info;
- s32 result;
+ int result;
struct wid wid;
u8 *cur_byte;
{
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
- s32 result;
+ int result;
struct wid wid;
u8 del_beacon = 0;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct add_sta_param *param = &msg->body.add_sta_info;
- s32 result;
+ int result;
struct wid wid;
u8 *cur_byte;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct del_all_sta *param = &msg->body.del_all_sta_info;
- s32 result;
+ int result;
struct wid wid;
u8 *curr_byte;
u8 i;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct del_sta *param = &msg->body.del_sta_info;
- s32 result;
+ int result;
struct wid wid;
wid.id = WID_REMOVE_STA;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct add_sta_param *param = &msg->body.edit_sta_info;
- s32 result;
+ int result;
struct wid wid;
u8 *cur_byte;
static int handle_remain_on_chan(struct wilc_vif *vif,
struct remain_ch *hif_remain_ch)
{
- s32 result;
+ int result;
u8 remain_on_chan_flag;
struct wid wid;
struct host_if_drv *hif_drv = vif->hif_drv;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct reg_frame *hif_reg_frame = &msg->body.reg_frame;
- s32 result;
+ int result;
struct wid wid;
u8 *cur_byte;
struct remain_ch *hif_remain_ch = &msg->body.remain_on_ch;
u8 remain_on_chan_flag;
struct wid wid;
- s32 result;
+ int result;
struct host_if_drv *hif_drv = vif->hif_drv;
if (p2p_listen_state) {
struct host_if_drv *hif_drv = from_timer(hif_drv, t,
remain_on_ch_timer);
struct wilc_vif *vif = hif_drv->remain_on_ch_timer_vif;
- s32 result;
+ int result;
struct host_if_msg *msg;
del_timer(&vif->hif_drv->remain_on_ch_timer);
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct power_mgmt_param *pm_param = &msg->body.pwr_mgmt_info;
- s32 result;
+ int result;
struct wid wid;
s8 power_mode;
struct host_if_msg *msg = container_of(work, struct host_if_msg, work);
struct wilc_vif *vif = msg->vif;
struct set_multicast *hif_set_mc = &msg->body.multicast_info;
- s32 result;
+ int result;
struct wid wid;
u8 *cur_byte;
void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length)
{
- s32 result;
+ int result;
struct host_if_msg *msg;
int id;
struct host_if_drv *hif_drv;
void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *buffer, u32 length)
{
- s32 result;
+ int result;
struct host_if_msg *msg;
int id;
struct host_if_drv *hif_drv;
void wilc_scan_complete_received(struct wilc *wilc, u8 *buffer, u32 length)
{
- s32 result;
+ int result;
int id;
struct host_if_drv *hif_drv;
struct wilc_vif *vif;
{
struct wilc_priv *priv;
u32 i;
- s32 ret = 0;
+ int ret = 0;
u8 scan_ch_list[MAX_NUM_SCANNED_NETWORKS];
struct hidden_network hidden_ntwk;
struct wilc_vif *vif;
static int connect(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_connect_params *sme)
{
- s32 ret;
+ int ret;
u32 i;
u32 sel_bssi_idx = UINT_MAX;
u8 security = NO_ENCRYPT;
static int disconnect(struct wiphy *wiphy, struct net_device *dev,
u16 reason_code)
{
- s32 ret;
+ int ret;
struct wilc_priv *priv;
struct host_if_drv *wfi_drv;
struct wilc_vif *vif;
bool pairwise, const u8 *mac_addr, struct key_params *params)
{
- s32 ret = 0, keylen = params->key_len;
+ int ret = 0, keylen = params->key_len;
struct wilc_priv *priv;
const u8 *rx_mic = NULL;
const u8 *tx_mic = NULL;
static int set_wiphy_params(struct wiphy *wiphy, u32 changed)
{
- s32 ret;
+ int ret;
struct cfg_param_attr cfg_param_val;
struct wilc_priv *priv;
struct wilc_vif *vif;
struct cfg80211_pmksa *pmksa)
{
u32 i;
- s32 ret = 0;
+ int ret = 0;
u8 flag = 0;
struct wilc_vif *vif;
struct wilc_priv *priv = wiphy_priv(wiphy);
struct cfg80211_pmksa *pmksa)
{
u32 i;
- s32 ret = 0;
+ int ret = 0;
struct wilc_priv *priv = wiphy_priv(wiphy);
for (i = 0; i < priv->pmkid_list.numpmkid; i++) {
struct ieee80211_channel *chan,
unsigned int duration, u64 *cookie)
{
- s32 ret = 0;
+ int ret = 0;
struct wilc_priv *priv;
struct wilc_vif *vif;
struct cfg80211_ap_settings *settings)
{
struct cfg80211_beacon_data *beacon = &settings->beacon;
- s32 ret;
+ int ret;
struct wilc *wl;
struct wilc_vif *vif;
static int stop_ap(struct wiphy *wiphy, struct net_device *dev)
{
- s32 ret;
+ int ret;
struct wilc_priv *priv;
struct wilc_vif *vif;
u8 null_bssid[ETH_ALEN] = {0};
static int add_station(struct wiphy *wiphy, struct net_device *dev,
const u8 *mac, struct station_parameters *params)
{
- s32 ret = 0;
+ int ret = 0;
struct wilc_priv *priv;
struct add_sta_param sta_params = { {0} };
struct wilc_vif *vif;
struct station_del_parameters *params)
{
const u8 *mac = params->mac;
- s32 ret = 0;
+ int ret = 0;
struct wilc_priv *priv;
struct wilc_vif *vif;
struct sta_info *info;
static int change_station(struct wiphy *wiphy, struct net_device *dev,
const u8 *mac, struct station_parameters *params)
{
- s32 ret = 0;
+ int ret = 0;
struct add_sta_param sta_params = { {0} };
struct wilc_vif *vif;
{
struct wilc_priv *priv;
struct wireless_dev *wdev;
- s32 ret;
+ int ret;
wdev = wilc_wfi_cfg_alloc();
if (!wdev) {