iwlwifi: mvm: add a generic cipher scheme support
Hello Max Stepanov,
The patch e36e5433c98d: "iwlwifi: mvm: add a generic cipher scheme support" from Aug 27, 2013, leads to the following (soon to be pushed) Smatch warning:
drivers/net/wireless/iwlwifi/mvm/mac80211.c:265 iwl_mvm_mac_setup_register() warn: this array is probably non-NULL. 'mvm->fw->cs'
drivers/net/wireless/iwlwifi/mvm/mac80211.c
264 /* currently FW API supports only one optional cipher scheme */
265 if (mvm->fw->cs && mvm->fw->cs->cipher) {
^^^^^^^^^^^This is an array, not a pointer.
266 mvm->hw->n_cipher_schemes = 1; 267 mvm->hw->cipher_schemes = mvm->fw->cs; 268 }
regards,
dan carpenter
Quoted 5 lines
drivers/net/wireless/iwlwifi/mvm/mac80211.c
264 /* currently FW API supports only one optional cipher scheme */265 if (mvm->fw->cs && mvm->fw->cs->cipher) { ^^^^^^^^^^^This is an array, not a pointer.
1. Apologies for delay of my reply, I'm back to the office from vacation today.
2. I see that Emmanuel already sent the fix yesterday. See [PATCH 18/28] iwlwifi: mvm: fix harmless smatch / coccinelle warnings
Regards,
Max