Merge "net🛜Fix kw issues"
This commit is contained in:
commit
97a89a8b6b
3 changed files with 5 additions and 1 deletions
|
@ -7687,6 +7687,9 @@ static int nl80211_crypto_settings(struct cfg80211_registered_device *rdev,
|
||||||
if (settings->n_ciphers_pairwise > cipher_limit)
|
if (settings->n_ciphers_pairwise > cipher_limit)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (len > sizeof(u32) * NL80211_MAX_NR_CIPHER_SUITES)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
memcpy(settings->ciphers_pairwise, data, len);
|
memcpy(settings->ciphers_pairwise, data, len);
|
||||||
|
|
||||||
for (i = 0; i < settings->n_ciphers_pairwise; i++)
|
for (i = 0; i < settings->n_ciphers_pairwise; i++)
|
||||||
|
|
|
@ -498,7 +498,7 @@ static int cfg80211_sme_get_conn_ies(struct wireless_dev *wdev,
|
||||||
if (!buf)
|
if (!buf)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
if (ies_len) {
|
if (ies_len && ies) {
|
||||||
static const u8 before_extcapa[] = {
|
static const u8 before_extcapa[] = {
|
||||||
/* not listing IEs expected to be created by driver */
|
/* not listing IEs expected to be created by driver */
|
||||||
WLAN_EID_RSN,
|
WLAN_EID_RSN,
|
||||||
|
|
|
@ -591,6 +591,7 @@ int ieee80211_data_from_8023(struct sk_buff *skb, const u8 *addr,
|
||||||
hdr.frame_control = fc;
|
hdr.frame_control = fc;
|
||||||
hdr.duration_id = 0;
|
hdr.duration_id = 0;
|
||||||
hdr.seq_ctrl = 0;
|
hdr.seq_ctrl = 0;
|
||||||
|
eth_zero_addr(hdr.addr4);
|
||||||
|
|
||||||
skip_header_bytes = ETH_HLEN;
|
skip_header_bytes = ETH_HLEN;
|
||||||
if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) {
|
if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue