diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index f9eb2486d550..a354f1939e49 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1107,7 +1107,7 @@ static void ieee80211_send_layer2_update(struct sta_info *sta) | |||
1107 | skb = dev_alloc_skb(sizeof(*msg)); | 1107 | skb = dev_alloc_skb(sizeof(*msg)); |
1108 | if (!skb) | 1108 | if (!skb) |
1109 | return; | 1109 | return; |
1110 | msg = (struct iapp_layer2_update *)skb_put(skb, sizeof(*msg)); | 1110 | msg = skb_put(skb, sizeof(*msg)); |
1111 | 1111 | ||
1112 | /* 802.2 Type 1 Logical Link Control (LLC) Exchange Identifier (XID) | 1112 | /* 802.2 Type 1 Logical Link Control (LLC) Exchange Identifier (XID) |
1113 | * Update response frame; IEEE Std 802.2-1998, 5.4.1.2.1 */ | 1113 | * Update response frame; IEEE Std 802.2-1998, 5.4.1.2.1 */ |
@@ -3414,7 +3414,7 @@ static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev, | |||
3414 | 3414 | ||
3415 | skb_reserve(skb, local->hw.extra_tx_headroom); | 3415 | skb_reserve(skb, local->hw.extra_tx_headroom); |
3416 | 3416 | ||
3417 | nullfunc = (void *) skb_put(skb, size); | 3417 | nullfunc = skb_put(skb, size); |
3418 | nullfunc->frame_control = fc; | 3418 | nullfunc->frame_control = fc; |
3419 | nullfunc->duration_id = 0; | 3419 | nullfunc->duration_id = 0; |
3420 | memcpy(nullfunc->addr1, sta->sta.addr, ETH_ALEN); | 3420 | memcpy(nullfunc->addr1, sta->sta.addr, ETH_ALEN); |