Merge "net🛜Fix kw issues"

This commit is contained in:
Linux Build Service Account 2018-10-15 02:42:14 -07:00 committed by Gerrit - the friendly Code Review server
commit 97a89a8b6b
3 changed files with 5 additions and 1 deletions

View file

@ -7687,6 +7687,9 @@ static int nl80211_crypto_settings(struct cfg80211_registered_device *rdev,
if (settings->n_ciphers_pairwise > cipher_limit)
return -EINVAL;
if (len > sizeof(u32) * NL80211_MAX_NR_CIPHER_SUITES)
return -EINVAL;
memcpy(settings->ciphers_pairwise, data, len);
for (i = 0; i < settings->n_ciphers_pairwise; i++)

View file

@ -498,7 +498,7 @@ static int cfg80211_sme_get_conn_ies(struct wireless_dev *wdev,
if (!buf)
return -ENOMEM;
if (ies_len) {
if (ies_len && ies) {
static const u8 before_extcapa[] = {
/* not listing IEs expected to be created by driver */
WLAN_EID_RSN,

View file

@ -591,6 +591,7 @@ int ieee80211_data_from_8023(struct sk_buff *skb, const u8 *addr,
hdr.frame_control = fc;
hdr.duration_id = 0;
hdr.seq_ctrl = 0;
eth_zero_addr(hdr.addr4);
skip_header_bytes = ETH_HLEN;
if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) {