Skip to content

Commit

Permalink
iwlwifi: mvm: document switch case fall-through in iwl_mvm_send_sta_key
Browse files Browse the repository at this point in the history
Add a comment indicating that the WLAN_CIPHER_SUITE_WEP104 case falls
through to the WLAN_CIPHER_SUITE_WEP40 case in iwl_mvm_send_sta_key.
This will document that the lack of a break is intentional.

Coverity: CID 1260023

Signed-off-by: John W. Linville <[email protected]>
Signed-off-by: Emmanuel Grumbach <[email protected]>
  • Loading branch information
linvjw authored and egrumbach committed Jan 22, 2015
1 parent ec41088 commit aa0cb08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/iwlwifi/mvm/sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,7 @@ static int iwl_mvm_send_sta_key(struct iwl_mvm *mvm,
break;
case WLAN_CIPHER_SUITE_WEP104:
key_flags |= cpu_to_le16(STA_KEY_FLG_WEP_13BYTES);
/* fall through */
case WLAN_CIPHER_SUITE_WEP40:
key_flags |= cpu_to_le16(STA_KEY_FLG_WEP);
memcpy(cmd.key + 3, keyconf->key, keyconf->keylen);
Expand Down

0 comments on commit aa0cb08

Please sign in to comment.