Commit da537229 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: fixes blank lines aren't necessary brace

This patch fixes the checks reported by checkpatch.pl
for Blank lines aren't necessary after an open brace '{' and
Blank lines aren't necessary before a close brace '}'.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a89f7c55
...@@ -201,7 +201,6 @@ static void clear_shadow_scan(void) ...@@ -201,7 +201,6 @@ static void clear_shadow_scan(void)
} }
last_scanned_cnt = 0; last_scanned_cnt = 0;
} }
} }
static u32 get_rssi_avg(tstrNetworkInfo *network_info) static u32 get_rssi_avg(tstrNetworkInfo *network_info)
...@@ -250,10 +249,8 @@ static void refresh_scan(void *user_void, u8 all, bool direct_scan) ...@@ -250,10 +249,8 @@ static void refresh_scan(void *user_void, u8 all, bool direct_scan)
cfg80211_put_bss(wiphy, bss); cfg80211_put_bss(wiphy, bss);
} }
} }
} }
} }
} }
static void reset_shadow_found(void) static void reset_shadow_found(void)
...@@ -347,7 +344,6 @@ static void add_network_to_shadow(tstrNetworkInfo *pstrNetworkInfo, ...@@ -347,7 +344,6 @@ static void add_network_to_shadow(tstrNetworkInfo *pstrNetworkInfo,
if (ap_found == -1) { if (ap_found == -1) {
ap_index = last_scanned_cnt; ap_index = last_scanned_cnt;
last_scanned_cnt++; last_scanned_cnt++;
} else { } else {
ap_index = ap_found; ap_index = ap_found;
} }
...@@ -590,9 +586,7 @@ static void CfgConnectResult(enum conn_event enuConnDisconnEvent, ...@@ -590,9 +586,7 @@ static void CfgConnectResult(enum conn_event enuConnDisconnEvent,
cfg80211_disconnected(dev, pstrDisconnectNotifInfo->u16reason, pstrDisconnectNotifInfo->ie, cfg80211_disconnected(dev, pstrDisconnectNotifInfo->u16reason, pstrDisconnectNotifInfo->ie,
pstrDisconnectNotifInfo->ie_len, false, pstrDisconnectNotifInfo->ie_len, false,
GFP_KERNEL); GFP_KERNEL);
} }
} }
static int set_channel(struct wiphy *wiphy, static int set_channel(struct wiphy *wiphy,
...@@ -646,14 +640,11 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request) ...@@ -646,14 +640,11 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
PRINT_D(CFG80211_DBG, "Number of SSIDs %d\n", request->n_ssids); PRINT_D(CFG80211_DBG, "Number of SSIDs %d\n", request->n_ssids);
if (request->n_ssids >= 1) { if (request->n_ssids >= 1) {
strHiddenNetwork.pstrHiddenNetworkInfo = kmalloc(request->n_ssids * sizeof(struct hidden_network), GFP_KERNEL); strHiddenNetwork.pstrHiddenNetworkInfo = kmalloc(request->n_ssids * sizeof(struct hidden_network), GFP_KERNEL);
strHiddenNetwork.u8ssidnum = request->n_ssids; strHiddenNetwork.u8ssidnum = request->n_ssids;
for (i = 0; i < request->n_ssids; i++) { for (i = 0; i < request->n_ssids; i++) {
if (request->ssids[i].ssid != NULL && request->ssids[i].ssid_len != 0) { if (request->ssids[i].ssid != NULL && request->ssids[i].ssid_len != 0) {
strHiddenNetwork.pstrHiddenNetworkInfo[i].pu8ssid = kmalloc(request->ssids[i].ssid_len, GFP_KERNEL); strHiddenNetwork.pstrHiddenNetworkInfo[i].pu8ssid = kmalloc(request->ssids[i].ssid_len, GFP_KERNEL);
memcpy(strHiddenNetwork.pstrHiddenNetworkInfo[i].pu8ssid, request->ssids[i].ssid, request->ssids[i].ssid_len); memcpy(strHiddenNetwork.pstrHiddenNetworkInfo[i].pu8ssid, request->ssids[i].ssid, request->ssids[i].ssid_len);
...@@ -675,7 +666,6 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request) ...@@ -675,7 +666,6 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
(const u8 *)request->ie, request->ie_len, (const u8 *)request->ie, request->ie_len,
CfgScanResult, (void *)priv, NULL); CfgScanResult, (void *)priv, NULL);
} }
} else { } else {
PRINT_ER("Requested num of scanned channels is greater than the max, supported" PRINT_ER("Requested num of scanned channels is greater than the max, supported"
" channels\n"); " channels\n");
...@@ -835,7 +825,6 @@ static int connect(struct wiphy *wiphy, struct net_device *dev, ...@@ -835,7 +825,6 @@ static int connect(struct wiphy *wiphy, struct net_device *dev,
u8security = ENCRYPT_ENABLED | WPA | AES; u8security = ENCRYPT_ENABLED | WPA | AES;
pcgroup_encrypt_val = "WPA_AES"; pcgroup_encrypt_val = "WPA_AES";
pccipher_group = "AES"; pccipher_group = "AES";
} }
pcwpa_version = "WPA_VERSION_1"; pcwpa_version = "WPA_VERSION_1";
...@@ -845,7 +834,6 @@ static int connect(struct wiphy *wiphy, struct net_device *dev, ...@@ -845,7 +834,6 @@ static int connect(struct wiphy *wiphy, struct net_device *dev,
goto done; goto done;
} }
} }
if ((sme->crypto.wpa_versions & NL80211_WPA_VERSION_1) if ((sme->crypto.wpa_versions & NL80211_WPA_VERSION_1)
...@@ -982,7 +970,6 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, ...@@ -982,7 +970,6 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
case WLAN_CIPHER_SUITE_WEP40: case WLAN_CIPHER_SUITE_WEP40:
case WLAN_CIPHER_SUITE_WEP104: case WLAN_CIPHER_SUITE_WEP104:
if (priv->wdev->iftype == NL80211_IFTYPE_AP) { if (priv->wdev->iftype == NL80211_IFTYPE_AP) {
priv->WILC_WFI_wep_default = key_index; priv->WILC_WFI_wep_default = key_index;
priv->WILC_WFI_wep_key_len[key_index] = params->key_len; priv->WILC_WFI_wep_key_len[key_index] = params->key_len;
memcpy(priv->WILC_WFI_wep_key[key_index], params->key, params->key_len); memcpy(priv->WILC_WFI_wep_key[key_index], params->key, params->key_len);
...@@ -1022,12 +1009,10 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, ...@@ -1022,12 +1009,10 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
case WLAN_CIPHER_SUITE_TKIP: case WLAN_CIPHER_SUITE_TKIP:
case WLAN_CIPHER_SUITE_CCMP: case WLAN_CIPHER_SUITE_CCMP:
if (priv->wdev->iftype == NL80211_IFTYPE_AP || priv->wdev->iftype == NL80211_IFTYPE_P2P_GO) { if (priv->wdev->iftype == NL80211_IFTYPE_AP || priv->wdev->iftype == NL80211_IFTYPE_P2P_GO) {
if (priv->wilc_gtk[key_index] == NULL) { if (priv->wilc_gtk[key_index] == NULL) {
priv->wilc_gtk[key_index] = kmalloc(sizeof(struct wilc_wfi_key), GFP_KERNEL); priv->wilc_gtk[key_index] = kmalloc(sizeof(struct wilc_wfi_key), GFP_KERNEL);
priv->wilc_gtk[key_index]->key = NULL; priv->wilc_gtk[key_index]->key = NULL;
priv->wilc_gtk[key_index]->seq = NULL; priv->wilc_gtk[key_index]->seq = NULL;
} }
if (priv->wilc_ptk[key_index] == NULL) { if (priv->wilc_ptk[key_index] == NULL) {
priv->wilc_ptk[key_index] = kmalloc(sizeof(struct wilc_wfi_key), GFP_KERNEL); priv->wilc_ptk[key_index] = kmalloc(sizeof(struct wilc_wfi_key), GFP_KERNEL);
...@@ -1046,7 +1031,6 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, ...@@ -1046,7 +1031,6 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
priv->wilc_groupkey = u8gmode; priv->wilc_groupkey = u8gmode;
if (params->key_len > 16 && params->cipher == WLAN_CIPHER_SUITE_TKIP) { if (params->key_len > 16 && params->cipher == WLAN_CIPHER_SUITE_TKIP) {
pu8TxMic = params->key + 24; pu8TxMic = params->key + 24;
pu8RxMic = params->key + 16; pu8RxMic = params->key + 16;
KeyLen = params->key_len - 16; KeyLen = params->key_len - 16;
...@@ -1087,7 +1071,6 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, ...@@ -1087,7 +1071,6 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
if (params->key_len > 16 && params->cipher == WLAN_CIPHER_SUITE_TKIP) { if (params->key_len > 16 && params->cipher == WLAN_CIPHER_SUITE_TKIP) {
pu8TxMic = params->key + 24; pu8TxMic = params->key + 24;
pu8RxMic = params->key + 16; pu8RxMic = params->key + 16;
KeyLen = params->key_len - 16; KeyLen = params->key_len - 16;
...@@ -1207,7 +1190,6 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, ...@@ -1207,7 +1190,6 @@ static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
default: default:
PRINT_ER("Not supported cipher: Error(%d)\n", s32Error); PRINT_ER("Not supported cipher: Error(%d)\n", s32Error);
s32Error = -ENOTSUPP; s32Error = -ENOTSUPP;
} }
return s32Error; return s32Error;
...@@ -1235,7 +1217,6 @@ static int del_key(struct wiphy *wiphy, struct net_device *netdev, ...@@ -1235,7 +1217,6 @@ static int del_key(struct wiphy *wiphy, struct net_device *netdev,
g_key_wep_params.key = NULL; g_key_wep_params.key = NULL;
if ((priv->wilc_gtk[key_index]) != NULL) { if ((priv->wilc_gtk[key_index]) != NULL) {
kfree(priv->wilc_gtk[key_index]->key); kfree(priv->wilc_gtk[key_index]->key);
priv->wilc_gtk[key_index]->key = NULL; priv->wilc_gtk[key_index]->key = NULL;
kfree(priv->wilc_gtk[key_index]->seq); kfree(priv->wilc_gtk[key_index]->seq);
...@@ -1243,11 +1224,9 @@ static int del_key(struct wiphy *wiphy, struct net_device *netdev, ...@@ -1243,11 +1224,9 @@ static int del_key(struct wiphy *wiphy, struct net_device *netdev,
kfree(priv->wilc_gtk[key_index]); kfree(priv->wilc_gtk[key_index]);
priv->wilc_gtk[key_index] = NULL; priv->wilc_gtk[key_index] = NULL;
} }
if ((priv->wilc_ptk[key_index]) != NULL) { if ((priv->wilc_ptk[key_index]) != NULL) {
kfree(priv->wilc_ptk[key_index]->key); kfree(priv->wilc_ptk[key_index]->key);
priv->wilc_ptk[key_index]->key = NULL; priv->wilc_ptk[key_index]->key = NULL;
kfree(priv->wilc_ptk[key_index]->seq); kfree(priv->wilc_ptk[key_index]->seq);
...@@ -1332,7 +1311,6 @@ static int set_default_key(struct wiphy *wiphy, struct net_device *netdev, u8 ke ...@@ -1332,7 +1311,6 @@ static int set_default_key(struct wiphy *wiphy, struct net_device *netdev, u8 ke
PRINT_D(CFG80211_DBG, "Setting default key with idx = %d\n", key_index); PRINT_D(CFG80211_DBG, "Setting default key with idx = %d\n", key_index);
if (key_index != priv->WILC_WFI_wep_default) { if (key_index != priv->WILC_WFI_wep_default) {
wilc_set_wep_default_keyid(priv->hWILCWFIDrv, key_index); wilc_set_wep_default_keyid(priv->hWILCWFIDrv, key_index);
} }
...@@ -1356,12 +1334,10 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -1356,12 +1334,10 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
PRINT_INFO(HOSTAPD_DBG, ": %x%x%x%x%x\n", mac[0], mac[1], mac[2], mac[3], mac[4]); PRINT_INFO(HOSTAPD_DBG, ": %x%x%x%x%x\n", mac[0], mac[1], mac[2], mac[3], mac[4]);
for (i = 0; i < NUM_STA_ASSOCIATED; i++) { for (i = 0; i < NUM_STA_ASSOCIATED; i++) {
if (!(memcmp(mac, priv->assoc_stainfo.au8Sta_AssociatedBss[i], ETH_ALEN))) { if (!(memcmp(mac, priv->assoc_stainfo.au8Sta_AssociatedBss[i], ETH_ALEN))) {
associatedsta = i; associatedsta = i;
break; break;
} }
} }
if (associatedsta == -1) { if (associatedsta == -1) {
...@@ -1374,7 +1350,6 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -1374,7 +1350,6 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
wilc_get_inactive_time(priv->hWILCWFIDrv, mac, &(inactive_time)); wilc_get_inactive_time(priv->hWILCWFIDrv, mac, &(inactive_time));
sinfo->inactive_time = 1000 * inactive_time; sinfo->inactive_time = 1000 * inactive_time;
PRINT_D(CFG80211_DBG, "Inactive time %d\n", sinfo->inactive_time); PRINT_D(CFG80211_DBG, "Inactive time %d\n", sinfo->inactive_time);
} }
if (nic->iftype == STATION_MODE) { if (nic->iftype == STATION_MODE) {
...@@ -1431,17 +1406,14 @@ static int set_wiphy_params(struct wiphy *wiphy, u32 changed) ...@@ -1431,17 +1406,14 @@ static int set_wiphy_params(struct wiphy *wiphy, u32 changed)
pstrCfgParamVal.short_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_short; pstrCfgParamVal.short_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_short;
} }
if (changed & WIPHY_PARAM_RETRY_LONG) { if (changed & WIPHY_PARAM_RETRY_LONG) {
PRINT_D(CFG80211_DBG, "Setting WIPHY_PARAM_RETRY_LONG %d\n", priv->dev->ieee80211_ptr->wiphy->retry_long); PRINT_D(CFG80211_DBG, "Setting WIPHY_PARAM_RETRY_LONG %d\n", priv->dev->ieee80211_ptr->wiphy->retry_long);
pstrCfgParamVal.flag |= RETRY_LONG; pstrCfgParamVal.flag |= RETRY_LONG;
pstrCfgParamVal.long_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_long; pstrCfgParamVal.long_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_long;
} }
if (changed & WIPHY_PARAM_FRAG_THRESHOLD) { if (changed & WIPHY_PARAM_FRAG_THRESHOLD) {
PRINT_D(CFG80211_DBG, "Setting WIPHY_PARAM_FRAG_THRESHOLD %d\n", priv->dev->ieee80211_ptr->wiphy->frag_threshold); PRINT_D(CFG80211_DBG, "Setting WIPHY_PARAM_FRAG_THRESHOLD %d\n", priv->dev->ieee80211_ptr->wiphy->frag_threshold);
pstrCfgParamVal.flag |= FRAG_THRESHOLD; pstrCfgParamVal.flag |= FRAG_THRESHOLD;
pstrCfgParamVal.frag_threshold = priv->dev->ieee80211_ptr->wiphy->frag_threshold; pstrCfgParamVal.frag_threshold = priv->dev->ieee80211_ptr->wiphy->frag_threshold;
} }
if (changed & WIPHY_PARAM_RTS_THRESHOLD) { if (changed & WIPHY_PARAM_RTS_THRESHOLD) {
...@@ -1449,7 +1421,6 @@ static int set_wiphy_params(struct wiphy *wiphy, u32 changed) ...@@ -1449,7 +1421,6 @@ static int set_wiphy_params(struct wiphy *wiphy, u32 changed)
pstrCfgParamVal.flag |= RTS_THRESHOLD; pstrCfgParamVal.flag |= RTS_THRESHOLD;
pstrCfgParamVal.rts_threshold = priv->dev->ieee80211_ptr->wiphy->rts_threshold; pstrCfgParamVal.rts_threshold = priv->dev->ieee80211_ptr->wiphy->rts_threshold;
} }
PRINT_D(CFG80211_DBG, "Setting CFG params in the host interface\n"); PRINT_D(CFG80211_DBG, "Setting CFG params in the host interface\n");
...@@ -1504,7 +1475,6 @@ static int set_pmksa(struct wiphy *wiphy, struct net_device *netdev, ...@@ -1504,7 +1475,6 @@ static int set_pmksa(struct wiphy *wiphy, struct net_device *netdev,
static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev, static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev,
struct cfg80211_pmksa *pmksa) struct cfg80211_pmksa *pmksa)
{ {
u32 i; u32 i;
s32 s32Error = 0; s32 s32Error = 0;
...@@ -1633,7 +1603,6 @@ static void WILC_WFI_CfgParseTxAction(u8 *buf, u32 len, bool bOperChan, u8 iftyp ...@@ -1633,7 +1603,6 @@ static void WILC_WFI_CfgParseTxAction(u8 *buf, u32 len, bool bOperChan, u8 iftyp
void WILC_WFI_p2p_rx (struct net_device *dev, u8 *buff, u32 size) void WILC_WFI_p2p_rx (struct net_device *dev, u8 *buff, u32 size)
{ {
struct wilc_priv *priv; struct wilc_priv *priv;
u32 header, pkt_offset; u32 header, pkt_offset;
struct host_if_drv *pstrWFIDrv; struct host_if_drv *pstrWFIDrv;
...@@ -1665,7 +1634,6 @@ void WILC_WFI_p2p_rx (struct net_device *dev, u8 *buff, u32 size) ...@@ -1665,7 +1634,6 @@ void WILC_WFI_p2p_rx (struct net_device *dev, u8 *buff, u32 size)
return; return;
} }
} else { } else {
PRINT_D(GENERIC_DBG, "Rx Frame Type:%x\n", buff[FRAME_TYPE_ID]); PRINT_D(GENERIC_DBG, "Rx Frame Type:%x\n", buff[FRAME_TYPE_ID]);
s32Freq = ieee80211_channel_to_frequency(curr_channel, IEEE80211_BAND_2GHZ); s32Freq = ieee80211_channel_to_frequency(curr_channel, IEEE80211_BAND_2GHZ);
...@@ -1678,7 +1646,6 @@ void WILC_WFI_p2p_rx (struct net_device *dev, u8 *buff, u32 size) ...@@ -1678,7 +1646,6 @@ void WILC_WFI_p2p_rx (struct net_device *dev, u8 *buff, u32 size)
return; return;
} }
if (buff[ACTION_CAT_ID] == PUB_ACTION_ATTR_ID) { if (buff[ACTION_CAT_ID] == PUB_ACTION_ATTR_ID) {
switch (buff[ACTION_SUBTYPE_ID]) { switch (buff[ACTION_SUBTYPE_ID]) {
case GAS_INTIAL_REQ: case GAS_INTIAL_REQ:
PRINT_D(GENERIC_DBG, "GAS INITIAL REQ %x\n", buff[ACTION_SUBTYPE_ID]); PRINT_D(GENERIC_DBG, "GAS INITIAL REQ %x\n", buff[ACTION_SUBTYPE_ID]);
...@@ -1952,7 +1919,6 @@ static int mgmt_tx(struct wiphy *wiphy, ...@@ -1952,7 +1919,6 @@ static int mgmt_tx(struct wiphy *wiphy,
break; break;
} }
} }
} }
PRINT_D(GENERIC_DBG, "TX: ACTION FRAME Type:%x : Chan:%d\n", buf[ACTION_SUBTYPE_ID], chan->hw_value); PRINT_D(GENERIC_DBG, "TX: ACTION FRAME Type:%x : Chan:%d\n", buf[ACTION_SUBTYPE_ID], chan->hw_value);
...@@ -1998,7 +1964,6 @@ static int mgmt_tx_cancel_wait(struct wiphy *wiphy, ...@@ -1998,7 +1964,6 @@ static int mgmt_tx_cancel_wait(struct wiphy *wiphy,
void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev, void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev,
u16 frame_type, bool reg) u16 frame_type, bool reg)
{ {
struct wilc_priv *priv; struct wilc_priv *priv;
perInterface_wlan_t *nic; perInterface_wlan_t *nic;
struct wilc *wl; struct wilc *wl;
...@@ -2030,7 +1995,6 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -2030,7 +1995,6 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev,
{ {
break; break;
} }
} }
if (!wl->initialized) { if (!wl->initialized) {
...@@ -2038,8 +2002,6 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -2038,8 +2002,6 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev,
return; return;
} }
wilc_frame_register(priv->hWILCWFIDrv, frame_type, reg); wilc_frame_register(priv->hWILCWFIDrv, frame_type, reg);
} }
static int set_cqm_rssi_config(struct wiphy *wiphy, struct net_device *dev, static int set_cqm_rssi_config(struct wiphy *wiphy, struct net_device *dev,
...@@ -2047,7 +2009,6 @@ static int set_cqm_rssi_config(struct wiphy *wiphy, struct net_device *dev, ...@@ -2047,7 +2009,6 @@ static int set_cqm_rssi_config(struct wiphy *wiphy, struct net_device *dev,
{ {
PRINT_D(CFG80211_DBG, "Setting CQM RSSi Function\n"); PRINT_D(CFG80211_DBG, "Setting CQM RSSi Function\n");
return 0; return 0;
} }
static int dump_station(struct wiphy *wiphy, struct net_device *dev, static int dump_station(struct wiphy *wiphy, struct net_device *dev,
...@@ -2067,7 +2028,6 @@ static int dump_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -2067,7 +2028,6 @@ static int dump_station(struct wiphy *wiphy, struct net_device *dev,
wilc_get_rssi(priv->hWILCWFIDrv, &(sinfo->signal)); wilc_get_rssi(priv->hWILCWFIDrv, &(sinfo->signal));
return 0; return 0;
} }
static int set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, static int set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
...@@ -2091,7 +2051,6 @@ static int set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, ...@@ -2091,7 +2051,6 @@ static int set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
return 0; return 0;
} }
static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev, static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
...@@ -2680,7 +2639,6 @@ static int del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev) ...@@ -2680,7 +2639,6 @@ static int del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev)
} }
static struct cfg80211_ops wilc_cfg80211_ops = { static struct cfg80211_ops wilc_cfg80211_ops = {
.set_monitor_channel = set_channel, .set_monitor_channel = set_channel,
.scan = scan, .scan = scan,
.connect = connect, .connect = connect,
...@@ -2719,12 +2677,10 @@ static struct cfg80211_ops wilc_cfg80211_ops = { ...@@ -2719,12 +2677,10 @@ static struct cfg80211_ops wilc_cfg80211_ops = {
int WILC_WFI_update_stats(struct wiphy *wiphy, u32 pktlen, u8 changed) int WILC_WFI_update_stats(struct wiphy *wiphy, u32 pktlen, u8 changed)
{ {
struct wilc_priv *priv; struct wilc_priv *priv;
priv = wiphy_priv(wiphy); priv = wiphy_priv(wiphy);
switch (changed) { switch (changed) {
case WILC_WFI_RX_PKT: case WILC_WFI_RX_PKT:
{ {
priv->netstats.rx_packets++; priv->netstats.rx_packets++;
...@@ -2750,7 +2706,6 @@ int WILC_WFI_update_stats(struct wiphy *wiphy, u32 pktlen, u8 changed) ...@@ -2750,7 +2706,6 @@ int WILC_WFI_update_stats(struct wiphy *wiphy, u32 pktlen, u8 changed)
static struct wireless_dev *WILC_WFI_CfgAlloc(void) static struct wireless_dev *WILC_WFI_CfgAlloc(void)
{ {
struct wireless_dev *wdev; struct wireless_dev *wdev;
...@@ -2766,7 +2721,6 @@ static struct wireless_dev *WILC_WFI_CfgAlloc(void) ...@@ -2766,7 +2721,6 @@ static struct wireless_dev *WILC_WFI_CfgAlloc(void)
if (!wdev->wiphy) { if (!wdev->wiphy) {
PRINT_ER("Cannot allocate wiphy\n"); PRINT_ER("Cannot allocate wiphy\n");
goto _fail_mem_; goto _fail_mem_;
} }
WILC_WFI_band_2ghz.ht_cap.ht_supported = 1; WILC_WFI_band_2ghz.ht_cap.ht_supported = 1;
...@@ -2783,7 +2737,6 @@ static struct wireless_dev *WILC_WFI_CfgAlloc(void) ...@@ -2783,7 +2737,6 @@ static struct wireless_dev *WILC_WFI_CfgAlloc(void)
kfree(wdev); kfree(wdev);
_fail_: _fail_:
return NULL; return NULL;
} }
struct wireless_dev *wilc_create_wiphy(struct net_device *net, struct device *dev) struct wireless_dev *wilc_create_wiphy(struct net_device *net, struct device *dev)
...@@ -2836,13 +2789,10 @@ struct wireless_dev *wilc_create_wiphy(struct net_device *net, struct device *de ...@@ -2836,13 +2789,10 @@ struct wireless_dev *wilc_create_wiphy(struct net_device *net, struct device *de
priv->dev = net; priv->dev = net;
return wdev; return wdev;
} }
int wilc_init_host_int(struct net_device *net) int wilc_init_host_int(struct net_device *net)
{ {
int s32Error = 0; int s32Error = 0;
struct wilc_priv *priv; struct wilc_priv *priv;
......
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