wilc1000: wilc_wfi_cfgoperations.c: fixed brace coding style issues
PATCH 1/1 wilc1000: wilc_wfi_cfgoperations.c: fixed brace coding style issues
Fixed brace coding styles issues
Signed-off-by Daniel Machon <[email protected]>
--- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +5 -6
@@ -1216,8 +1216,8 @@ static int WILC_WFI_add_key(struct wiphy *wiphy, struct net_device *netdev, u8 k -if (!pairwise) - { +if (!pairwise) { +if (params->cipher ==WLAN_CIPHER_SUITE_TKIP ) u8gmode =ENCRYPT_ENABLED |WPA |TKIP ;else
@@ -1315,8 +1315,8 @@ static int WILC_WFI_add_key(struct wiphy *wiphy, struct net_device *netdev, u8 k { u8mode =0 ; -if (!pairwise) - { +if (!pairwise) { +if (params->key_len >16 && params->cipher ==WLAN_CIPHER_SUITE_TKIP ) {/* swap the tx mic by rx mic */ pu8RxMic = params->key +24 ;
@@ -1542,8 +1542,7 @@ static int WILC_WFI_get_key(struct wiphy *wiphy, struct net_device *netdev, u8 k priv =wiphy_priv (wiphy); -if (!pairwise) - { +if (!pairwise) {PRINT_D (CFG80211_DBG ,"Getting group key idx: %x\n" , key_index); key_params.key = priv->wilc_gtk[key_index]->key;
Signature · 1 line
2.1.4
Quoted 23 lines · Daniel Machon
Fixed brace coding styles issues
Signed-off-by Daniel Machon <[email protected]>--- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +2
-2@@ -1216,8 +1216,8 @@ static int WILC_WFI_add_key(struct wiphy *wiphy, struct net_device *netdev, u8 k -if (!pairwise) - { +if (!pairwise) { +if (params->cipher ==WLAN_CIPHER_SUITE_TKIP ) u8gmode =ENCRYPT_ENABLED |WPA |TKIP ;else
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c static int WILC_WFI_add_key(struct wiphy *wiphy, struct net_device *netdev, u8 k · line 1319
Quoted 7 lines
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +2
-2@@ -1315,8 +1315,8 @@ static int WILC_WFI_add_key(struct wiphy *wiphy, struct net_device *netdev, u8 k { u8mode =0 ; -if (!pairwise) - { +if (!pairwise) { +
This blank line and the one above it are not required.
regards
sudip