aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2015-01-12 16:18:11 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-01-22 10:55:19 -0500
commitaa0cb08b9575f4c37d6936b9189ecdcdbc94ee7a (patch)
treec57a5142eda924d621d57e08fce11aa3b379840e
parentec41088f2bff8c6b151c450798534a1037eda47e (diff)
iwlwifi: mvm: document switch case fall-through in iwl_mvm_send_sta_key
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 <linville@tuxdriver.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/sta.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/sta.c b/drivers/net/wireless/iwlwifi/mvm/sta.c
index b93a177b4a09..8e413d3b9c32 100644
--- a/drivers/net/wireless/iwlwifi/mvm/sta.c
+++ b/drivers/net/wireless/iwlwifi/mvm/sta.c
@@ -1196,6 +1196,7 @@ static int iwl_mvm_send_sta_key(struct iwl_mvm *mvm,
1196 break; 1196 break;
1197 case WLAN_CIPHER_SUITE_WEP104: 1197 case WLAN_CIPHER_SUITE_WEP104:
1198 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP_13BYTES); 1198 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP_13BYTES);
1199 /* fall through */
1199 case WLAN_CIPHER_SUITE_WEP40: 1200 case WLAN_CIPHER_SUITE_WEP40:
1200 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP); 1201 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP);
1201 memcpy(cmd.key + 3, keyconf->key, keyconf->keylen); 1202 memcpy(cmd.key + 3, keyconf->key, keyconf->keylen);