History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: [NETNS][IPV6] tcp - assign the netns for timewait sockets [IPV4]: Fix byte value boundary check in do_ip_getsockopt(). BNX2X: Correct bringing chip out of reset [NETFILTER]: nf_nat: autoload IPv4 connection tracking [NETFILTER]: xt_hashlimit: fix mask calculation [XFRM]: xfrm_user: fix selector family initialization rt61pci: rt61pci_beacon_update do not free skb twice ssb-mipscore: Fix interrupt vectors ssb-pcicore: Fix IRQ TPS flag handling mac80211: use short_preamble mode from capability if ERP IE not present [NET]: Undo code bloat in hot paths due to print_mac(). [TCP]: Don't allow FRTO to take place while MTU is being probed [TCP]: tcp_simple_retransmit can cause S+L [TCP]: Fix NewReno's fast rexmit/recovery problems with GSOed skb [TCP]: Restore 2.6.24 mark_head_lost behavior for newreno/fack nl80211: fix STA AID bug b43legacy: fix bcm4303 crash iwlwifi: fix n-band association problem ipw2200: set MAC address on radiotap interface libertas: fix mode initialization problem

Linus Torvalds committed 18 years ago

Commit 90768c02 parents 3f06350 7951f0b26 files · +344 −195Browse files

Unified · Split

26 files
  1. drivers/net/bnx2x.c +3 −3
  2. drivers/net/starfire.c +5 −6
  3. drivers/net/tokenring/olympic.c +10 −5
  4. drivers/net/virtio_net.c +3 −2
  5. drivers/net/wireless/hostap/hostap_80211_rx.c +24 −15
  6. drivers/net/wireless/hostap/hostap_80211_tx.c +4 −3
  7. drivers/net/wireless/hostap/hostap_ap.c +127 −76
  8. drivers/net/wireless/ipw2200.c +5 −3
  9. drivers/net/wireless/iwlwifi/Kconfig +0 −1
  10. drivers/net/wireless/libertas/assoc.c +1 −1
  11. drivers/net/wireless/rt2x00/rt61pci.c +1 −3
  12. drivers/ssb/driver_mipscore.c +7 −6
  13. drivers/ssb/driver_pcicore.c +1 −1
  14. drivers/ssb/main.c +6 −0
  15. include/net/tcp.h +2 −0
  16. net/atm/lec.c +19 −10
  17. net/ieee80211/ieee80211_rx.c +29 −14
  18. net/ipv4/inet_timewait_sock.c +1 −0
  19. net/ipv4/ip_sockglue.c +1 −1
  20. net/ipv4/netfilter/nf_nat_core.c +2 −0
  21. net/ipv4/tcp_input.c +48 −17
  22. net/ipv4/tcp_output.c +3 −0
  23. net/mac80211/ieee80211_sta.c +35 −8
  24. net/netfilter/xt_hashlimit.c +5 −18
  25. net/wireless/nl80211.c +1 −1
  26. net/xfrm/xfrm_user.c +1 −1
drivers/net/bnx2x.c+3−3
@@ -63,8 +63,8 @@ · 62 unmodified lines
6363 #include "bnx2x.h"
6464 #include "bnx2x_init.h"
6565
66−#define DRV_MODULE_VERSION "1.42.3"
67−#define DRV_MODULE_RELDATE "2008/3/9"
66+#define DRV_MODULE_VERSION "1.42.4"
67+#define DRV_MODULE_RELDATE "2008/4/9"
6868 #define BNX2X_BC_VER 0x040200
6969
7070 /* Time in jiffies before concluding the transmitter is hung. */
@@ -6153,7 +6153,7 @@ static int bnx2x_function_init(struct bnx2x *bp, int mode) · 6082 unmodified lines
61536153 func, mode);
61546154 REG_WR(bp, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET,
61556155 0xffffffff);
6156− REG_WR(bp, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET,
6156+ REG_WR(bp, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_SET,
61576157 0xfffc);
61586158 bnx2x_init_block(bp, MISC_COMMON_START, MISC_COMMON_END);
61596159
drivers/net/starfire.c+5−6
@@ -1472,13 +1472,12 @@ static int __netdev_rx(struct net_device *dev, int *quota) · 1471 unmodified lines
14721472 #ifndef final_version /* Remove after testing. */
14731473 /* You will want this info for the initial debug. */
14741474 if (debug > 5) {
1475− DECLARE_MAC_BUF(mac);
1476− DECLARE_MAC_BUF(mac2);
1477−
1478− printk(KERN_DEBUG " Rx data %s %s"
1475+ printk(KERN_DEBUG " Rx data " MAC_FMT " " MAC_FMT
14791476 " %2.2x%2.2x.\n",
1480− print_mac(mac, &skb->data[0]),
1481− print_mac(mac2, &skb->data[6]),
1477+ skb->data[0], skb->data[1], skb->data[2],
1478+ skb->data[3], skb->data[4], skb->data[5],
1479+ skb->data[6], skb->data[7], skb->data[8],
1480+ skb->data[9], skb->data[10], skb->data[11],
14821481 skb->data[12], skb->data[13]);
14831482 }
14841483 #endif
drivers/net/tokenring/olympic.c+10−5
@@ -1438,13 +1438,18 @@ static void olympic_arb_cmd(struct net_device *dev) · 1437 unmodified lines
14381438
14391439 if (olympic_priv->olympic_network_monitor) {
14401440 struct trh_hdr *mac_hdr;
1441− DECLARE_MAC_BUF(mac);
14421441 printk(KERN_WARNING "%s: Received MAC Frame, details: \n",dev->name);
14431442 mac_hdr = tr_hdr(mac_frame);
1444− printk(KERN_WARNING "%s: MAC Frame Dest. Addr: %s\n",
1445− dev->name, print_mac(mac, mac_hdr->daddr));
1446− printk(KERN_WARNING "%s: MAC Frame Srce. Addr: %s\n",
1447− dev->name, print_mac(mac, mac_hdr->saddr));
1443+ printk(KERN_WARNING "%s: MAC Frame Dest. Addr: "
1444+ MAC_FMT " \n", dev->name,
1445+ mac_hdr->daddr[0], mac_hdr->daddr[1],
1446+ mac_hdr->daddr[2], mac_hdr->daddr[3],
1447+ mac_hdr->daddr[4], mac_hdr->daddr[5]);
1448+ printk(KERN_WARNING "%s: MAC Frame Srce. Addr: "
1449+ MAC_FMT " \n", dev->name,
1450+ mac_hdr->saddr[0], mac_hdr->saddr[1],
1451+ mac_hdr->saddr[2], mac_hdr->saddr[3],
1452+ mac_hdr->saddr[4], mac_hdr->saddr[5]);
14481453 }
14491454 netif_rx(mac_frame);
14501455 dev->last_rx = jiffies;
drivers/net/virtio_net.c+3−2
@@ -234,11 +234,12 @@ static int start_xmit(struct sk_buff *skb, struct net_device *dev) · 233 unmodified lines
234234 struct scatterlist sg[1+MAX_SKB_FRAGS];
235235 struct virtio_net_hdr *hdr;
236236 const unsigned char *dest = ((struct ethhdr *)skb->data)->h_dest;
237− DECLARE_MAC_BUF(mac);
238237
239238 sg_init_table(sg, 1+MAX_SKB_FRAGS);
240239
241− pr_debug("%s: xmit %p %s\n", dev->name, skb, print_mac(mac, dest));
240+ pr_debug("%s: xmit %p " MAC_FMT "\n", dev->name, skb,
241+ dest[0], dest[1], dest[2],
242+ dest[3], dest[4], dest[5]);
242243
243244 /* Encode metadata header at front. */
244245 hdr = skb_vnet_hdr(skb);
drivers/net/wireless/hostap/hostap_80211_rx.c+24−15
@@ -635,7 +635,6 @@ hostap_rx_frame_decrypt(local_info_t *local, struct sk_buff *skb, · 634 unmodified lines
635635 {
636636 struct ieee80211_hdr_4addr *hdr;
637637 int res, hdrlen;
638− DECLARE_MAC_BUF(mac);
639638
640639 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL)
641640 return 0;
@@ -647,8 +646,10 @@ hostap_rx_frame_decrypt(local_info_t *local, struct sk_buff *skb, · 5 unmodified lines
647646 strcmp(crypt->ops->name, "TKIP") == 0) {
648647 if (net_ratelimit()) {
649648 printk(KERN_DEBUG "%s: TKIP countermeasures: dropped "
650− "received packet from %s\n",
651− local->dev->name, print_mac(mac, hdr->addr2));
649+ "received packet from " MAC_FMT "\n",
650+ local->dev->name,
651+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
652+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5]);
652653 }
653654 return -1;
654655 }
@@ -657,9 +658,12 @@ hostap_rx_frame_decrypt(local_info_t *local, struct sk_buff *skb, · 2 unmodified lines
657658 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv);
658659 atomic_dec(&crypt->refcnt);
659660 if (res < 0) {
660− printk(KERN_DEBUG "%s: decryption failed (SA=%s"
661+ printk(KERN_DEBUG "%s: decryption failed (SA=" MAC_FMT
661662 ") res=%d\n",
662− local->dev->name, print_mac(mac, hdr->addr2), res);
663+ local->dev->name,
664+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
665+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5],
666+ res);
663667 local->comm_tallies.rx_discards_wep_undecryptable++;
664668 return -1;
665669 }
@@ -721,7 +725,6 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb, · 55 unmodified lines
721725 struct ieee80211_crypt_data *crypt = NULL;
722726 void *sta = NULL;
723727 int keyidx = 0;
724− DECLARE_MAC_BUF(mac);
725728
726729 iface = netdev_priv(dev);
727730 local = iface->local;
@@ -798,8 +801,10 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb, · 70 unmodified lines
798801 * frames silently instead of filling system log with
799802 * these reports. */
800803 printk(KERN_DEBUG "%s: WEP decryption failed (not set)"
801− " (SA=%s)\n",
802− local->dev->name, print_mac(mac, hdr->addr2));
804+ " (SA=" MAC_FMT ")\n",
805+ local->dev->name,
806+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
807+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5]);
803808 #endif
804809 local->comm_tallies.rx_discards_wep_undecryptable++;
805810 goto rx_dropped;
@@ -813,8 +818,9 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb, · 7 unmodified lines
813818 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0)
814819 {
815820 printk(KERN_DEBUG "%s: failed to decrypt mgmt::auth "
816− "from %s\n", dev->name,
817− print_mac(mac, hdr->addr2));
821+ "from " MAC_FMT "\n", dev->name,
822+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
823+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5]);
818824 /* TODO: could inform hostapd about this so that it
819825 * could send auth failure report */
820826 goto rx_dropped;
@@ -982,8 +988,10 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb, · 161 unmodified lines
982988 "unencrypted EAPOL frame\n", local->dev->name);
983989 } else {
984990 printk(KERN_DEBUG "%s: encryption configured, but RX "
985− "frame not encrypted (SA=%s)\n",
986− local->dev->name, print_mac(mac, hdr->addr2));
991+ "frame not encrypted (SA=" MAC_FMT ")\n",
992+ local->dev->name,
993+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
994+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5]);
987995 goto rx_dropped;
988996 }
989997 }
@@ -992,9 +1000,10 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb, · 2 unmodified lines
9921000 !hostap_is_eapol_frame(local, skb)) {
9931001 if (net_ratelimit()) {
9941002 printk(KERN_DEBUG "%s: dropped unencrypted RX data "
995− "frame from %s"
996− " (drop_unencrypted=1)\n",
997− dev->name, print_mac(mac, hdr->addr2));
1003+ "frame from " MAC_FMT " (drop_unencrypted=1)\n",
1004+ dev->name,
1005+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1006+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5]);
9981007 }
9991008 goto rx_dropped;
10001009 }
drivers/net/wireless/hostap/hostap_80211_tx.c+4−3
@@ -314,7 +314,6 @@ static struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb, · 313 unmodified lines
314314 struct ieee80211_hdr_4addr *hdr;
315315 u16 fc;
316316 int prefix_len, postfix_len, hdr_len, res;
317− DECLARE_MAC_BUF(mac);
318317
319318 iface = netdev_priv(skb->dev);
320319 local = iface->local;
@@ -329,8 +328,10 @@ static struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb, · 8 unmodified lines
329328 hdr = (struct ieee80211_hdr_4addr *) skb->data;
330329 if (net_ratelimit()) {
331330 printk(KERN_DEBUG "%s: TKIP countermeasures: dropped "
332− "TX packet to %s\n",
333− local->dev->name, print_mac(mac, hdr->addr1));
331+ "TX packet to " MAC_FMT "\n",
332+ local->dev->name,
333+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
334+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5]);
334335 }
335336 kfree_skb(skb);
336337 return NULL;
drivers/net/wireless/hostap/hostap_ap.c+127−76
@@ -632,7 +632,6 @@ static void hostap_ap_tx_cb_auth(struct sk_buff *skb, int ok, void *data) · 631 unmodified lines
632632 __le16 *pos;
633633 struct sta_info *sta = NULL;
634634 char *txt = NULL;
635− DECLARE_MAC_BUF(mac);
636635
637636 if (ap->local->hostapd) {
638637 dev_kfree_skb(skb);
@@ -684,10 +683,12 @@ static void hostap_ap_tx_cb_auth(struct sk_buff *skb, int ok, void *data) · 45 unmodified lines
684683 if (sta)
685684 atomic_dec(&sta->users);
686685 if (txt) {
687− PDEBUG(DEBUG_AP, "%s: %s auth_cb - alg=%d "
686+ PDEBUG(DEBUG_AP, "%s: " MAC_FMT " auth_cb - alg=%d "
688687 "trans#=%d status=%d - %s\n",
689− dev->name, print_mac(mac, hdr->addr1), auth_alg,
690− auth_transaction, status, txt);
688+ dev->name,
689+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
690+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5],
691+ auth_alg, auth_transaction, status, txt);
691692 }
692693 dev_kfree_skb(skb);
693694 }
@@ -703,7 +704,6 @@ static void hostap_ap_tx_cb_assoc(struct sk_buff *skb, int ok, void *data) · 9 unmodified lines
703704 __le16 *pos;
704705 struct sta_info *sta = NULL;
705706 char *txt = NULL;
706− DECLARE_MAC_BUF(mac);
707707
708708 if (ap->local->hostapd) {
709709 dev_kfree_skb(skb);
@@ -754,8 +754,11 @@ static void hostap_ap_tx_cb_assoc(struct sk_buff *skb, int ok, void *data) · 44 unmodified lines
754754 if (sta)
755755 atomic_dec(&sta->users);
756756 if (txt) {
757− PDEBUG(DEBUG_AP, "%s: %s assoc_cb - %s\n",
758− dev->name, print_mac(mac, hdr->addr1), txt);
757+ PDEBUG(DEBUG_AP, "%s: " MAC_FMT " assoc_cb - %s\n",
758+ dev->name,
759+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
760+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5],
761+ txt);
759762 }
760763 dev_kfree_skb(skb);
761764 }
@@ -767,7 +770,6 @@ static void hostap_ap_tx_cb_poll(struct sk_buff *skb, int ok, void *data) · 5 unmodified lines
767770 struct ap_data *ap = data;
768771 struct ieee80211_hdr_4addr *hdr;
769772 struct sta_info *sta;
770− DECLARE_MAC_BUF(mac);
771773
772774 if (skb->len < 24)
773775 goto fail;
@@ -779,9 +781,11 @@ static void hostap_ap_tx_cb_poll(struct sk_buff *skb, int ok, void *data) · 5 unmodified lines
779781 sta->flags &= ~WLAN_STA_PENDING_POLL;
780782 spin_unlock(&ap->sta_table_lock);
781783 } else {
782− PDEBUG(DEBUG_AP, "%s: STA %s"
784+ PDEBUG(DEBUG_AP, "%s: STA " MAC_FMT
783785 " did not ACK activity poll frame\n",
784− ap->local->dev->name, print_mac(mac, hdr->addr1));
786+ ap->local->dev->name,
787+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
788+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5]);
785789 }
786790
787791 fail:
@@ -1306,7 +1310,6 @@ static void handle_authen(local_info_t *local, struct sk_buff *skb, · 518 unmodified lines
13061310 struct sta_info *sta = NULL;
13071311 struct ieee80211_crypt_data *crypt;
13081312 char *txt = "";
1309− DECLARE_MAC_BUF(mac);
13101313
13111314 len = skb->len - IEEE80211_MGMT_HDR_LEN;
13121315
@@ -1315,8 +1318,9 @@ static void handle_authen(local_info_t *local, struct sk_buff *skb, · 2 unmodified lines
13151318
13161319 if (len < 6) {
13171320 PDEBUG(DEBUG_AP, "%s: handle_authen - too short payload "
1318− "(len=%d) from %s\n", dev->name, len,
1319− print_mac(mac, hdr->addr2));
1321+ "(len=%d) from " MAC_FMT "\n", dev->name, len,
1322+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1323+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5]);
13201324 return;
13211325 }
13221326
@@ -1381,8 +1385,10 @@ static void handle_authen(local_info_t *local, struct sk_buff *skb, · 58 unmodified lines
13811385 if (time_after(jiffies, sta->u.ap.last_beacon +
13821386 (10 * sta->listen_interval * HZ) / 1024)) {
13831387 PDEBUG(DEBUG_AP, "%s: no beacons received for a while,"
1384− " assuming AP %s is now STA\n",
1385− dev->name, print_mac(mac, sta->addr));
1388+ " assuming AP " MAC_FMT " is now STA\n",
1389+ dev->name,
1390+ sta->addr[0], sta->addr[1], sta->addr[2],
1391+ sta->addr[3], sta->addr[4], sta->addr[5]);
13861392 sta->ap = 0;
13871393 sta->flags = 0;
13881394 sta->u.sta.challenge = NULL;
@@ -1497,10 +1503,13 @@ static void handle_authen(local_info_t *local, struct sk_buff *skb, · 108 unmodified lines
14971503 }
14981504
14991505 if (resp) {
1500− PDEBUG(DEBUG_AP, "%s: %s auth (alg=%d "
1506+ PDEBUG(DEBUG_AP, "%s: " MAC_FMT " auth (alg=%d "
15011507 "trans#=%d stat=%d len=%d fc=%04x) ==> %d (%s)\n",
1502− dev->name, print_mac(mac, hdr->addr2), auth_alg,
1503− auth_transaction, status_code, len, fc, resp, txt);
1508+ dev->name,
1509+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1510+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5],
1511+ auth_alg, auth_transaction, status_code, len,
1512+ fc, resp, txt);
15041513 }
15051514 }
15061515
@@ -1519,14 +1528,15 @@ static void handle_assoc(local_info_t *local, struct sk_buff *skb, · 12 unmodified lines
15191528 int send_deauth = 0;
15201529 char *txt = "";
15211530 u8 prev_ap[ETH_ALEN];
1522− DECLARE_MAC_BUF(mac);
15231531
15241532 left = len = skb->len - IEEE80211_MGMT_HDR_LEN;
15251533
15261534 if (len < (reassoc ? 10 : 4)) {
15271535 PDEBUG(DEBUG_AP, "%s: handle_assoc - too short payload "
1528− "(len=%d, reassoc=%d) from %s\n",
1529− dev->name, len, reassoc, print_mac(mac, hdr->addr2));
1536+ "(len=%d, reassoc=%d) from " MAC_FMT "\n",
1537+ dev->name, len, reassoc,
1538+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1539+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5]);
15301540 return;
15311541 }
15321542
@@ -1603,9 +1613,12 @@ static void handle_assoc(local_info_t *local, struct sk_buff *skb, · 70 unmodified lines
16031613 }
16041614
16051615 if (left > 0) {
1606− PDEBUG(DEBUG_AP, "%s: assoc from %s"
1616+ PDEBUG(DEBUG_AP, "%s: assoc from " MAC_FMT
16071617 " with extra data (%d bytes) [",
1608− dev->name, print_mac(mac, hdr->addr2), left);
1618+ dev->name,
1619+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1620+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5],
1621+ left);
16091622 while (left > 0) {
16101623 PDEBUG2(DEBUG_AP, "<%02x>", *u);
16111624 u++; left--;
@@ -1704,10 +1717,15 @@ static void handle_assoc(local_info_t *local, struct sk_buff *skb, · 92 unmodified lines
17041717 }
17051718
17061719 #if 0
1707− PDEBUG(DEBUG_AP, "%s: %s %sassoc (len=%d "
1708− "prev_ap=%s) => %d(%d) (%s)\n",
1709− dev->name, print_mac(mac, hdr->addr2), reassoc ? "re" : "", len,
1710− print_mac(mac, prev_ap), resp, send_deauth, txt);
1720+ PDEBUG(DEBUG_AP, "%s: " MAC_FMT" %sassoc (len=%d "
1721+ "prev_ap=" MAC_FMT") => %d(%d) (%s)\n",
1722+ dev->name,
1723+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1724+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5],
1725+ reassoc ? "re" : "", len,
1726+ prev_ap[0], prev_ap[1], prev_ap[2],
1727+ prev_ap[3], prev_ap[4], prev_ap[5],
1728+ resp, send_deauth, txt);
17111729 #endif
17121730 }
17131731
@@ -1735,9 +1753,11 @@ static void handle_deauth(local_info_t *local, struct sk_buff *skb, · 21 unmodified lines
17351753 pos = (__le16 *) body;
17361754 reason_code = le16_to_cpu(*pos);
17371755
1738− PDEBUG(DEBUG_AP, "%s: deauthentication: %s len=%d, "
1739− "reason_code=%d\n", dev->name, print_mac(mac, hdr->addr2), len,
1740− reason_code);
1756+ PDEBUG(DEBUG_AP, "%s: deauthentication: " MAC_FMT " len=%d, "
1757+ "reason_code=%d\n", dev->name,
1758+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1759+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5],
1760+ len, reason_code);
17411761
17421762 spin_lock_bh(&local->ap->sta_table_lock);
17431763 sta = ap_get_sta(local->ap, hdr->addr2);
@@ -1748,9 +1768,11 @@ static void handle_deauth(local_info_t *local, struct sk_buff *skb, · 4 unmodified lines
17481768 }
17491769 spin_unlock_bh(&local->ap->sta_table_lock);
17501770 if (sta == NULL) {
1751− printk("%s: deauthentication from %s, "
1771+ printk("%s: deauthentication from " MAC_FMT ", "
17521772 "reason_code=%d, but STA not authenticated\n", dev->name,
1753− print_mac(mac, hdr->addr2), reason_code);
1773+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1774+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5],
1775+ reason_code);
17541776 }
17551777 }
17561778
@@ -1766,7 +1788,6 @@ static void handle_disassoc(local_info_t *local, struct sk_buff *skb, · 9 unmodified lines
17661788 u16 reason_code;
17671789 __le16 *pos;
17681790 struct sta_info *sta = NULL;
1769− DECLARE_MAC_BUF(mac);
17701791
17711792 len = skb->len - IEEE80211_MGMT_HDR_LEN;
17721793
@@ -1778,9 +1799,11 @@ static void handle_disassoc(local_info_t *local, struct sk_buff *skb, · 5 unmodified lines
17781799 pos = (__le16 *) body;
17791800 reason_code = le16_to_cpu(*pos);
17801801
1781− PDEBUG(DEBUG_AP, "%s: disassociation: %s len=%d, "
1782− "reason_code=%d\n", dev->name, print_mac(mac, hdr->addr2), len,
1783− reason_code);
1802+ PDEBUG(DEBUG_AP, "%s: disassociation: " MAC_FMT " len=%d, "
1803+ "reason_code=%d\n", dev->name,
1804+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1805+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5],
1806+ len, reason_code);
17841807
17851808 spin_lock_bh(&local->ap->sta_table_lock);
17861809 sta = ap_get_sta(local->ap, hdr->addr2);
@@ -1791,9 +1814,12 @@ static void handle_disassoc(local_info_t *local, struct sk_buff *skb, · 4 unmodified lines
17911814 }
17921815 spin_unlock_bh(&local->ap->sta_table_lock);
17931816 if (sta == NULL) {
1794− printk("%s: disassociation from %s, "
1817+ printk("%s: disassociation from " MAC_FMT ", "
17951818 "reason_code=%d, but STA not authenticated\n",
1796− dev->name, print_mac(mac, hdr->addr2), reason_code);
1819+ dev->name,
1820+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1821+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5],
1822+ reason_code);
17971823 }
17981824 }
17991825
@@ -1882,16 +1908,20 @@ static void handle_pspoll(local_info_t *local, · 82 unmodified lines
18821908 struct sta_info *sta;
18831909 u16 aid;
18841910 struct sk_buff *skb;
1885− DECLARE_MAC_BUF(mac);
18861911
1887− PDEBUG(DEBUG_PS2, "handle_pspoll: BSSID=%s"
1888− ", TA=%s PWRMGT=%d\n",
1889− print_mac(mac, hdr->addr1), print_mac(mac, hdr->addr2),
1912+ PDEBUG(DEBUG_PS2, "handle_pspoll: BSSID=" MAC_FMT
1913+ ", TA=" MAC_FMT " PWRMGT=%d\n",
1914+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
1915+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5],
1916+ hdr->addr2[0], hdr->addr2[1], hdr->addr2[2],
1917+ hdr->addr2[3], hdr->addr2[4], hdr->addr2[5],
18901918 !!(le16_to_cpu(hdr->frame_ctl) & IEEE80211_FCTL_PM));
18911919
18921920 if (memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN)) {
1893− PDEBUG(DEBUG_AP, "handle_pspoll - addr1(BSSID)=%s"
1894− " not own MAC\n", print_mac(mac, hdr->addr1));
1921+ PDEBUG(DEBUG_AP, "handle_pspoll - addr1(BSSID)=" MAC_FMT
1922+ " not own MAC\n",
1923+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
1924+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5]);
18951925 return;
18961926 }
18971927
@@ -1969,7 +1999,6 @@ static void handle_wds_oper_queue(struct work_struct *work) · 71 unmodified lines
19691999 wds_oper_queue);
19702000 local_info_t *local = ap->local;
19712001 struct wds_oper_data *entry, *prev;
1972− DECLARE_MAC_BUF(mac);
19732002
19742003 spin_lock_bh(&local->lock);
19752004 entry = local->ap->wds_oper_entries;
@@ -1978,10 +2007,11 @@ static void handle_wds_oper_queue(struct work_struct *work) · 2 unmodified lines
19782007
19792008 while (entry) {
19802009 PDEBUG(DEBUG_AP, "%s: %s automatic WDS connection "
1981− "to AP %s\n",
2010+ "to AP " MAC_FMT "\n",
19822011 local->dev->name,
19832012 entry->type == WDS_ADD ? "adding" : "removing",
1984− print_mac(mac, entry->addr));
2013+ entry->addr[0], entry->addr[1], entry->addr[2],
2014+ entry->addr[3], entry->addr[4], entry->addr[5]);
19852015 if (entry->type == WDS_ADD)
19862016 prism2_wds_add(local, entry->addr, 0);
19872017 else if (entry->type == WDS_DEL)
@@ -2158,7 +2188,6 @@ static void handle_ap_item(local_info_t *local, struct sk_buff *skb, · 170 unmodified lines
21582188 #endif /* PRISM2_NO_KERNEL_IEEE80211_MGMT */
21592189 u16 fc, type, stype;
21602190 struct ieee80211_hdr_4addr *hdr;
2161− DECLARE_MAC_BUF(mac);
21622191
21632192 /* FIX: should give skb->len to handler functions and check that the
21642193 * buffer is long enough */
@@ -2187,8 +2216,9 @@ static void handle_ap_item(local_info_t *local, struct sk_buff *skb, · 22 unmodified lines
21872216
21882217 if (memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN)) {
21892218 PDEBUG(DEBUG_AP, "handle_ap_item - addr1(BSSID)="
2190− "%s not own MAC\n",
2191− print_mac(mac, hdr->addr1));
2219+ MAC_FMT " not own MAC\n",
2220+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
2221+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5]);
21922222 goto done;
21932223 }
21942224
@@ -2224,14 +2254,18 @@ static void handle_ap_item(local_info_t *local, struct sk_buff *skb, · 29 unmodified lines
22242254 }
22252255
22262256 if (memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN)) {
2227− PDEBUG(DEBUG_AP, "handle_ap_item - addr1(DA)=%s"
2228− " not own MAC\n", print_mac(mac, hdr->addr1));
2257+ PDEBUG(DEBUG_AP, "handle_ap_item - addr1(DA)=" MAC_FMT
2258+ " not own MAC\n",
2259+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
2260+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5]);
22292261 goto done;
22302262 }
22312263
22322264 if (memcmp(hdr->addr3, dev->dev_addr, ETH_ALEN)) {
2233− PDEBUG(DEBUG_AP, "handle_ap_item - addr3(BSSID)=%s"
2234− " not own MAC\n", print_mac(mac, hdr->addr3));
2265+ PDEBUG(DEBUG_AP, "handle_ap_item - addr3(BSSID)=" MAC_FMT
2266+ " not own MAC\n",
2267+ hdr->addr3[0], hdr->addr3[1], hdr->addr3[2],
2268+ hdr->addr3[3], hdr->addr3[4], hdr->addr3[5]);
22352269 goto done;
22362270 }
22372271
@@ -2312,7 +2346,6 @@ static void schedule_packet_send(local_info_t *local, struct sta_info *sta) · 74 unmodified lines
23122346 struct sk_buff *skb;
23132347 struct ieee80211_hdr_4addr *hdr;
23142348 struct hostap_80211_rx_status rx_stats;
2315− DECLARE_MAC_BUF(mac);
23162349
23172350 if (skb_queue_empty(&sta->tx_buf))
23182351 return;
@@ -2334,7 +2367,9 @@ static void schedule_packet_send(local_info_t *local, struct sta_info *sta) · 15 unmodified lines
23342367 hdr->duration_id = cpu_to_le16(sta->aid | BIT(15) | BIT(14));
23352368
23362369 PDEBUG(DEBUG_PS2, "%s: Scheduling buffered packet delivery for STA "
2337− "%s\n", local->dev->name, print_mac(mac, sta->addr));
2370+ MAC_FMT "\n", local->dev->name,
2371+ sta->addr[0], sta->addr[1], sta->addr[2],
2372+ sta->addr[3], sta->addr[4], sta->addr[5]);
23382373
23392374 skb->dev = local->dev;
23402375
@@ -2661,7 +2696,6 @@ static int ap_update_sta_tx_rate(struct sta_info *sta, struct net_device *dev) · 320 unmodified lines
26612696 int ret = sta->tx_rate;
26622697 struct hostap_interface *iface;
26632698 local_info_t *local;
2664− DECLARE_MAC_BUF(mac);
26652699
26662700 iface = netdev_priv(dev);
26672701 local = iface->local;
@@ -2689,9 +2723,12 @@ static int ap_update_sta_tx_rate(struct sta_info *sta, struct net_device *dev) · 21 unmodified lines
26892723 case 3: sta->tx_rate = 110; break;
26902724 default: sta->tx_rate = 0; break;
26912725 }
2692− PDEBUG(DEBUG_AP, "%s: STA %s"
2726+ PDEBUG(DEBUG_AP, "%s: STA " MAC_FMT
26932727 " TX rate raised to %d\n",
2694− dev->name, print_mac(mac, sta->addr), sta->tx_rate);
2728+ dev->name,
2729+ sta->addr[0], sta->addr[1], sta->addr[2],
2730+ sta->addr[3], sta->addr[4], sta->addr[5],
2731+ sta->tx_rate);
26952732 }
26962733 sta->tx_since_last_failure = 0;
26972734 }
@@ -2709,7 +2746,6 @@ ap_tx_ret hostap_handle_sta_tx(local_info_t *local, struct hostap_tx_data *tx) · 11 unmodified lines
27092746 int set_tim, ret;
27102747 struct ieee80211_hdr_4addr *hdr;
27112748 struct hostap_skb_tx_data *meta;
2712− DECLARE_MAC_BUF(mac);
27132749
27142750 meta = (struct hostap_skb_tx_data *) skb->cb;
27152751 ret = AP_TX_CONTINUE;
@@ -2745,8 +2781,9 @@ ap_tx_ret hostap_handle_sta_tx(local_info_t *local, struct hostap_tx_data *tx) · 29 unmodified lines
27452781 * print out any errors here. */
27462782 if (net_ratelimit()) {
27472783 printk(KERN_DEBUG "AP: drop packet to non-associated "
2748− "STA %s\n",
2749− print_mac(mac, hdr->addr1));
2784+ "STA " MAC_FMT "\n",
2785+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
2786+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5]);
27502787 }
27512788 #endif
27522789 local->ap->tx_drop_nonassoc++;
@@ -2784,9 +2821,11 @@ ap_tx_ret hostap_handle_sta_tx(local_info_t *local, struct hostap_tx_data *tx) · 31 unmodified lines
27842821 }
27852822
27862823 if (skb_queue_len(&sta->tx_buf) >= STA_MAX_TX_BUFFER) {
2787− PDEBUG(DEBUG_PS, "%s: No more space in STA (%s"
2824+ PDEBUG(DEBUG_PS, "%s: No more space in STA (" MAC_FMT
27882825 ")'s PS mode buffer\n",
2789− local->dev->name, print_mac(mac, sta->addr));
2826+ local->dev->name,
2827+ sta->addr[0], sta->addr[1], sta->addr[2],
2828+ sta->addr[3], sta->addr[4], sta->addr[5]);
27902829 /* Make sure that TIM is set for the station (it might not be
27912830 * after AP wlan hw reset). */
27922831 /* FIX: should fix hw reset to restore bits based on STA
@@ -2850,7 +2889,6 @@ void hostap_handle_sta_tx_exc(local_info_t *local, struct sk_buff *skb) · 57 unmodified lines
28502889 struct sta_info *sta;
28512890 struct ieee80211_hdr_4addr *hdr;
28522891 struct hostap_skb_tx_data *meta;
2853− DECLARE_MAC_BUF(mac);
28542892
28552893 hdr = (struct ieee80211_hdr_4addr *) skb->data;
28562894 meta = (struct hostap_skb_tx_data *) skb->cb;
@@ -2859,9 +2897,12 @@ void hostap_handle_sta_tx_exc(local_info_t *local, struct sk_buff *skb) · 2 unmodified lines
28592897 sta = ap_get_sta(local->ap, hdr->addr1);
28602898 if (!sta) {
28612899 spin_unlock(&local->ap->sta_table_lock);
2862− PDEBUG(DEBUG_AP, "%s: Could not find STA %s"
2900+ PDEBUG(DEBUG_AP, "%s: Could not find STA " MAC_FMT
28632901 " for this TX error (@%lu)\n",
2864− local->dev->name, print_mac(mac, hdr->addr1), jiffies);
2902+ local->dev->name,
2903+ hdr->addr1[0], hdr->addr1[1], hdr->addr1[2],
2904+ hdr->addr1[3], hdr->addr1[4], hdr->addr1[5],
2905+ jiffies);
28652906 return;
28662907 }
28672908
@@ -2888,9 +2929,11 @@ void hostap_handle_sta_tx_exc(local_info_t *local, struct sk_buff *skb) · 20 unmodified lines
28882929 case 3: sta->tx_rate = 110; break;
28892930 default: sta->tx_rate = 0; break;
28902931 }
2891− PDEBUG(DEBUG_AP, "%s: STA %s"
2932+ PDEBUG(DEBUG_AP, "%s: STA " MAC_FMT
28922933 " TX rate lowered to %d\n",
2893− local->dev->name, print_mac(mac, sta->addr),
2934+ local->dev->name,
2935+ sta->addr[0], sta->addr[1], sta->addr[2],
2936+ sta->addr[3], sta->addr[4], sta->addr[5],
28942937 sta->tx_rate);
28952938 }
28962939 sta->tx_consecutive_exc = 0;
@@ -2956,7 +2999,6 @@ ap_rx_ret hostap_handle_sta_rx(local_info_t *local, struct net_device *dev, · 59 unmodified lines
29562999 struct sta_info *sta;
29573000 u16 fc, type, stype;
29583001 struct ieee80211_hdr_4addr *hdr;
2959− DECLARE_MAC_BUF(mac);
29603002
29613003 if (local->ap == NULL)
29623004 return AP_RX_CONTINUE;
@@ -2988,9 +3030,12 @@ ap_rx_ret hostap_handle_sta_rx(local_info_t *local, struct net_device *dev, · 25 unmodified lines
29883030 } else {
29893031 printk(KERN_DEBUG "%s: dropped received packet"
29903032 " from non-associated STA "
2991− "%s"
3033+ MAC_FMT
29923034 " (type=0x%02x, subtype=0x%02x)\n",
2993− dev->name, print_mac(mac, hdr->addr2),
3035+ dev->name,
3036+ hdr->addr2[0], hdr->addr2[1],
3037+ hdr->addr2[2], hdr->addr2[3],
3038+ hdr->addr2[4], hdr->addr2[5],
29943039 type >> 2, stype >> 4);
29953040 hostap_rx(dev, skb, rx_stats);
29963041 #endif /* PRISM2_NO_KERNEL_IEEE80211_MGMT */
@@ -3025,8 +3070,11 @@ ap_rx_ret hostap_handle_sta_rx(local_info_t *local, struct net_device *dev, · 28 unmodified lines
30253070 * being associated. */
30263071 printk(KERN_DEBUG "%s: rejected received nullfunc "
30273072 "frame without ToDS from not associated STA "
3028− "%s\n",
3029− dev->name, print_mac(mac, hdr->addr2));
3073+ MAC_FMT "\n",
3074+ dev->name,
3075+ hdr->addr2[0], hdr->addr2[1],
3076+ hdr->addr2[2], hdr->addr2[3],
3077+ hdr->addr2[4], hdr->addr2[5]);
30303078 hostap_rx(dev, skb, rx_stats);
30313079 #endif /* PRISM2_NO_KERNEL_IEEE80211_MGMT */
30323080 }
@@ -3043,9 +3091,12 @@ ap_rx_ret hostap_handle_sta_rx(local_info_t *local, struct net_device *dev, · 10 unmodified lines
30433091 * If BSSID is own, report the dropping of this frame. */
30443092 if (memcmp(hdr->addr3, dev->dev_addr, ETH_ALEN) == 0) {
30453093 printk(KERN_DEBUG "%s: dropped received packet from "
3046− "%s with no ToDS flag "
3094+ MAC_FMT " with no ToDS flag "
30473095 "(type=0x%02x, subtype=0x%02x)\n", dev->name,
3048− print_mac(mac, hdr->addr2), type >> 2, stype >> 4);
3096+ hdr->addr2[0], hdr->addr2[1],
3097+ hdr->addr2[2], hdr->addr2[3],
3098+ hdr->addr2[4], hdr->addr2[5],
3099+ type >> 2, stype >> 4);
30493100 hostap_dump_rx_80211(dev->name, skb, rx_stats);
30503101 }
30513102 ret = AP_RX_DROP;
drivers/net/wireless/ipw2200.c+5−3
@@ -10192,7 +10192,6 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb, · 10191 unmodified lines
1019210192 u8 id, hdr_len, unicast;
1019310193 u16 remaining_bytes;
1019410194 int fc;
10195− DECLARE_MAC_BUF(mac);
1019610195
1019710196 hdr_len = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_ctl));
1019810197 switch (priv->ieee->iw_mode) {
@@ -10203,8 +10202,10 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb, · 4 unmodified lines
1020310202 id = ipw_add_station(priv, hdr->addr1);
1020410203 if (id == IPW_INVALID_STATION) {
1020510204 IPW_WARNING("Attempt to send data to "
10206− "invalid cell: %s\n",
10207− print_mac(mac, hdr->addr1));
10205+ "invalid cell: " MAC_FMT "\n",
10206+ hdr->addr1[0], hdr->addr1[1],
10207+ hdr->addr1[2], hdr->addr1[3],
10208+ hdr->addr1[4], hdr->addr1[5]);
1020810209 goto drop;
1020910210 }
1021010211 }
@@ -11576,6 +11577,7 @@ static int ipw_prom_alloc(struct ipw_priv *priv) · 1365 unmodified lines
1157611577 priv->prom_priv->priv = priv;
1157711578
1157811579 strcpy(priv->prom_net_dev->name, "rtap%d");
11580+ memcpy(priv->prom_net_dev->dev_addr, priv->mac_addr, ETH_ALEN);
1157911581
1158011582 priv->prom_net_dev->type = ARPHRD_IEEE80211_RADIOTAP;
1158111583 priv->prom_net_dev->open = ipw_prom_open;
drivers/net/wireless/iwlwifi/Kconfig+0−1
@@ -35,7 +35,6 @@ config IWL4965_HT · 34 unmodified lines
3535 bool "Enable 802.11n HT features in iwl4965 driver"
3636 depends on EXPERIMENTAL
3737 depends on IWL4965 && IWL4965_QOS
38− depends on n
3938 ---help---
4039 This option enables IEEE 802.11n High Throughput features
4140 for the iwl4965 driver.
drivers/net/wireless/libertas/assoc.c+1−1
@@ -541,7 +541,7 @@ void lbs_association_worker(struct work_struct *work) · 540 unmodified lines
541541 }
542542
543543 if (find_any_ssid) {
544− u8 new_mode;
544+ u8 new_mode = assoc_req->mode;
545545
546546 ret = lbs_find_best_network_ssid(priv, assoc_req->ssid,
547547 &assoc_req->ssid_len, assoc_req->mode, &new_mode);
drivers/net/wireless/rt2x00/rt61pci.c+1−3
@@ -2399,10 +2399,8 @@ static int rt61pci_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb, · 2398 unmodified lines
23992399 * beacon frame.
24002400 */
24012401 if (skb_headroom(skb) < TXD_DESC_SIZE) {
2402− if (pskb_expand_head(skb, TXD_DESC_SIZE, 0, GFP_ATOMIC)) {
2403− dev_kfree_skb(skb);
2402+ if (pskb_expand_head(skb, TXD_DESC_SIZE, 0, GFP_ATOMIC))
24042403 return -ENOMEM;
2405− }
24062404 }
24072405
24082406 /*
drivers/ssb/driver_mipscore.c+7−6
@@ -109,12 +109,13 @@ static void set_irq(struct ssb_device *dev, unsigned int irq) · 108 unmodified lines
109109 clear_irq(bus, oldirq);
110110
111111 /* assign the new one */
112− if (irq == 0)
113− ssb_write32(mdev, SSB_INTVEC, ((1 << irqflag) & ssb_read32(mdev, SSB_INTVEC)));
114−
115− irqflag <<= ipsflag_irq_shift[irq];
116− irqflag |= (ssb_read32(mdev, SSB_IPSFLAG) & ~ipsflag_irq_mask[irq]);
117− ssb_write32(mdev, SSB_IPSFLAG, irqflag);
112+ if (irq == 0) {
113+ ssb_write32(mdev, SSB_INTVEC, ((1 << irqflag) | ssb_read32(mdev, SSB_INTVEC)));
114+ } else {
115+ irqflag <<= ipsflag_irq_shift[irq];
116+ irqflag |= (ssb_read32(mdev, SSB_IPSFLAG) & ~ipsflag_irq_mask[irq]);
117+ ssb_write32(mdev, SSB_IPSFLAG, irqflag);
118+ }
118119 }
119120
120121 static void ssb_mips_serial_init(struct ssb_mipscore *mcore)
drivers/ssb/driver_pcicore.c+1−1
@@ -551,7 +551,7 @@ int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc, · 550 unmodified lines
551551 } else {
552552 tmp = ssb_read32(dev, SSB_TPSFLAG);
553553 tmp &= SSB_TPSFLAG_BPFLAG;
554− intvec |= tmp;
554+ intvec |= (1 << tmp);
555555 }
556556 ssb_write32(pdev, SSB_INTVEC, intvec);
557557 }
drivers/ssb/main.c+6−0
@@ -1044,6 +1044,12 @@ int ssb_bus_may_powerdown(struct ssb_bus *bus) · 1043 unmodified lines
10441044 goto out;
10451045
10461046 cc = &bus->chipco;
1047+
1048+ if (!cc->dev)
1049+ goto out;
1050+ if (cc->dev->id.revision < 5)
1051+ goto out;
1052+
10471053 ssb_chipco_set_clockmode(cc, SSB_CLKMODE_SLOW);
10481054 err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 0);
10491055 if (err)
include/net/tcp.h+2−0
@@ -752,6 +752,8 @@ static inline unsigned int tcp_packets_in_flight(const struct tcp_sock *tp) · 751 unmodified lines
752752 return tp->packets_out - tcp_left_out(tp) + tp->retrans_out;
753753 }
754754
755+extern int tcp_limit_reno_sacked(struct tcp_sock *tp);
756+
755757 /* If cwnd > ssthresh, we may raise ssthresh to be half-way to cwnd.
756758 * The exception is rate halving phase, when cwnd is decreasing towards
757759 * ssthresh.
net/atm/lec.c+19−10
@@ -266,7 +266,6 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev) · 265 unmodified lines
266266 char buf[300];
267267 int i = 0;
268268 #endif /* DUMP_PACKETS >0 */
269− DECLARE_MAC_BUF(mac);
270269
271270 pr_debug("lec_start_xmit called\n");
272271 if (!priv->lecd) {
@@ -374,15 +373,19 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev) · 101 unmodified lines
374373 if (entry && (entry->tx_wait.qlen < LEC_UNRES_QUE_LEN)) {
375374 pr_debug("%s:lec_start_xmit: queuing packet, ",
376375 dev->name);
377− pr_debug("MAC address %s\n",
378− print_mac(mac, lec_h->h_dest));
376+ pr_debug("MAC address " MAC_FMT "\n",
377+ lec_h->h_dest[0], lec_h->h_dest[1],
378+ lec_h->h_dest[2], lec_h->h_dest[3],
379+ lec_h->h_dest[4], lec_h->h_dest[5]);
379380 skb_queue_tail(&entry->tx_wait, skb);
380381 } else {
381382 pr_debug
382383 ("%s:lec_start_xmit: tx queue full or no arp entry, dropping, ",
383384 dev->name);
384− pr_debug("MAC address %s\n",
385− print_mac(mac, lec_h->h_dest));
385+ pr_debug("MAC address " MAC_FMT "\n",
386+ lec_h->h_dest[0], lec_h->h_dest[1],
387+ lec_h->h_dest[2], lec_h->h_dest[3],
388+ lec_h->h_dest[4], lec_h->h_dest[5]);
386389 priv->stats.tx_dropped++;
387390 dev_kfree_skb(skb);
388391 }
@@ -394,8 +397,10 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev) · 5 unmodified lines
394397
395398 while (entry && (skb2 = skb_dequeue(&entry->tx_wait))) {
396399 pr_debug("lec.c: emptying tx queue, ");
397− pr_debug("MAC address %s\n",
398− print_mac(mac, lec_h->h_dest));
400+ pr_debug("MAC address " MAC_FMT "\n",
401+ lec_h->h_dest[0], lec_h->h_dest[1],
402+ lec_h->h_dest[2], lec_h->h_dest[3],
403+ lec_h->h_dest[4], lec_h->h_dest[5]);
399404 lec_send(vcc, skb2, priv);
400405 }
401406
@@ -449,7 +454,6 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb) · 47 unmodified lines
449454 struct lec_arp_table *entry;
450455 int i;
451456 char *tmp; /* FIXME */
452− DECLARE_MAC_BUF(mac);
453457
454458 atomic_sub(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc);
455459 mesg = (struct atmlec_msg *)skb->data;
@@ -536,9 +540,14 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb) · 80 unmodified lines
536540 struct net_bridge_fdb_entry *f;
537541
538542 pr_debug
539− ("%s: bridge zeppelin asks about %s\n",
543+ ("%s: bridge zeppelin asks about " MAC_FMT "\n",
540544 dev->name,
541− print_mac(mac, mesg->content.proxy.mac_addr));
545+ mesg->content.proxy.mac_addr[0],
546+ mesg->content.proxy.mac_addr[1],
547+ mesg->content.proxy.mac_addr[2],
548+ mesg->content.proxy.mac_addr[3],
549+ mesg->content.proxy.mac_addr[4],
550+ mesg->content.proxy.mac_addr[5]);
542551
543552 if (br_fdb_get_hook == NULL || dev->br_port == NULL)
544553 break;
net/ieee80211/ieee80211_rx.c+29−14
@@ -271,7 +271,6 @@ ieee80211_rx_frame_decrypt(struct ieee80211_device *ieee, struct sk_buff *skb, · 270 unmodified lines
271271 {
272272 struct ieee80211_hdr_3addr *hdr;
273273 int res, hdrlen;
274− DECLARE_MAC_BUF(mac);
275274
276275 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL)
277276 return 0;
@@ -283,8 +282,12 @@ ieee80211_rx_frame_decrypt(struct ieee80211_device *ieee, struct sk_buff *skb, · 5 unmodified lines
283282 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv);
284283 atomic_dec(&crypt->refcnt);
285284 if (res < 0) {
286− IEEE80211_DEBUG_DROP("decryption failed (SA=%s"
287− ") res=%d\n", print_mac(mac, hdr->addr2), res);
285+ IEEE80211_DEBUG_DROP("decryption failed (SA=" MAC_FMT
286+ ") res=%d\n",
287+ hdr->addr2[0], hdr->addr2[1],
288+ hdr->addr2[2], hdr->addr2[3],
289+ hdr->addr2[4], hdr->addr2[5],
290+ res);
288291 if (res == -2)
289292 IEEE80211_DEBUG_DROP("Decryption failed ICV "
290293 "mismatch (key %d)\n",
@@ -304,7 +307,6 @@ ieee80211_rx_frame_decrypt_msdu(struct ieee80211_device *ieee, · 13 unmodified lines
304307 {
305308 struct ieee80211_hdr_3addr *hdr;
306309 int res, hdrlen;
307− DECLARE_MAC_BUF(mac);
308310
309311 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL)
310312 return 0;
@@ -317,8 +319,12 @@ ieee80211_rx_frame_decrypt_msdu(struct ieee80211_device *ieee, · 6 unmodified lines
317319 atomic_dec(&crypt->refcnt);
318320 if (res < 0) {
319321 printk(KERN_DEBUG "%s: MSDU decryption/MIC verification failed"
320− " (SA=%s keyidx=%d)\n",
321− ieee->dev->name, print_mac(mac, hdr->addr2), keyidx);
322+ " (SA=" MAC_FMT " keyidx=%d)\n",
323+ ieee->dev->name,
324+ hdr->addr2[0], hdr->addr2[1],
325+ hdr->addr2[2], hdr->addr2[3],
326+ hdr->addr2[4], hdr->addr2[5],
327+ keyidx);
322328 return -1;
323329 }
324330
@@ -462,8 +468,10 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, · 137 unmodified lines
462468 * frames silently instead of filling system log with
463469 * these reports. */
464470 IEEE80211_DEBUG_DROP("Decryption failed (not set)"
465− " (SA=%s)\n",
466− print_mac(mac, hdr->addr2));
471+ " (SA=" MAC_FMT ")\n",
472+ hdr->addr2[0], hdr->addr2[1],
473+ hdr->addr2[2], hdr->addr2[3],
474+ hdr->addr2[4], hdr->addr2[5]);
467475 ieee->ieee_stats.rx_discards_undecryptable++;
468476 goto rx_dropped;
469477 }
@@ -474,8 +482,10 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, · 4 unmodified lines
474482 fc & IEEE80211_FCTL_PROTECTED && ieee->host_decrypt &&
475483 (keyidx = hostap_rx_frame_decrypt(ieee, skb, crypt)) < 0) {
476484 printk(KERN_DEBUG "%s: failed to decrypt mgmt::auth "
477− "from %s\n", dev->name,
478− print_mac(mac, hdr->addr2));
485+ "from " MAC_FMT "\n", dev->name,
486+ hdr->addr2[0], hdr->addr2[1],
487+ hdr->addr2[2], hdr->addr2[3],
488+ hdr->addr2[4], hdr->addr2[5]);
479489 /* TODO: could inform hostapd about this so that it
480490 * could send auth failure report */
481491 goto rx_dropped;
@@ -653,8 +663,11 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, · 171 unmodified lines
653663 * configured */
654664 } else {
655665 IEEE80211_DEBUG_DROP("encryption configured, but RX "
656− "frame not encrypted (SA=%s"
657− ")\n", print_mac(mac, hdr->addr2));
666+ "frame not encrypted (SA="
667+ MAC_FMT ")\n",
668+ hdr->addr2[0], hdr->addr2[1],
669+ hdr->addr2[2], hdr->addr2[3],
670+ hdr->addr2[4], hdr->addr2[5]);
658671 goto rx_dropped;
659672 }
660673 }
@@ -662,9 +675,11 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, · 1 unmodified line
662675 if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep &&
663676 !ieee80211_is_eapol_frame(ieee, skb)) {
664677 IEEE80211_DEBUG_DROP("dropped unencrypted RX data "
665− "frame from %s"
678+ "frame from " MAC_FMT
666679 " (drop_unencrypted=1)\n",
667− print_mac(mac, hdr->addr2));
680+ hdr->addr2[0], hdr->addr2[1],
681+ hdr->addr2[2], hdr->addr2[3],
682+ hdr->addr2[4], hdr->addr2[5]);
668683 goto rx_dropped;
669684 }
670685
net/ipv4/inet_timewait_sock.c+1−0
@@ -124,6 +124,7 @@ struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk, const int stat · 123 unmodified lines
124124 tw->tw_hash = sk->sk_hash;
125125 tw->tw_ipv6only = 0;
126126 tw->tw_prot = sk->sk_prot_creator;
127+ tw->tw_net = sk->sk_net;
127128 atomic_set(&tw->tw_refcnt, 1);
128129 inet_twsk_dead_node_init(tw);
129130 __module_get(tw->tw_prot->owner);
net/ipv4/ip_sockglue.c+1−1
@@ -1132,7 +1132,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname, · 1131 unmodified lines
11321132 }
11331133 release_sock(sk);
11341134
1135− if (len < sizeof(int) && len > 0 && val>=0 && val<255) {
1135+ if (len < sizeof(int) && len > 0 && val>=0 && val<=255) {
11361136 unsigned char ucval = (unsigned char)val;
11371137 len = 1;
11381138 if (put_user(len, optlen))
net/ipv4/netfilter/nf_nat_core.c+2−0
@@ -629,6 +629,8 @@ static int __init nf_nat_init(void) · 628 unmodified lines
629629 size_t i;
630630 int ret;
631631
632+ need_ipv4_conntrack();
633+
632634 ret = nf_ct_extend_register(&nat_extend);
633635 if (ret < 0) {
634636 printk(KERN_ERR "nf_nat_core: Unable to register extension\n");
net/ipv4/tcp_input.c+48−17
@@ -1625,13 +1625,11 @@ out: · 1624 unmodified lines
16251625 return flag;
16261626 }
16271627
1628−/* If we receive more dupacks than we expected counting segments
1629− * in assumption of absent reordering, interpret this as reordering.
1630− * The only another reason could be bug in receiver TCP.
1628+/* Limits sacked_out so that sum with lost_out isn't ever larger than
1629+ * packets_out. Returns zero if sacked_out adjustement wasn't necessary.
16311630 */
1632−static void tcp_check_reno_reordering(struct sock *sk, const int addend)
1631+int tcp_limit_reno_sacked(struct tcp_sock *tp)
16331632 {
1634− struct tcp_sock *tp = tcp_sk(sk);
16351633 u32 holes;
16361634
16371635 holes = max(tp->lost_out, 1U);
@@ -1639,8 +1637,20 @@ static void tcp_check_reno_reordering(struct sock *sk, const int addend) · 1 unmodified line
16391637
16401638 if ((tp->sacked_out + holes) > tp->packets_out) {
16411639 tp->sacked_out = tp->packets_out - holes;
1642− tcp_update_reordering(sk, tp->packets_out + addend, 0);
1640+ return 1;
16431641 }
1642+ return 0;
1643+}
1644+
1645+/* If we receive more dupacks than we expected counting segments
1646+ * in assumption of absent reordering, interpret this as reordering.
1647+ * The only another reason could be bug in receiver TCP.
1648+ */
1649+static void tcp_check_reno_reordering(struct sock *sk, const int addend)
1650+{
1651+ struct tcp_sock *tp = tcp_sk(sk);
1652+ if (tcp_limit_reno_sacked(tp))
1653+ tcp_update_reordering(sk, tp->packets_out + addend, 0);
16441654 }
16451655
16461656 /* Emulate SACKs for SACKless connection: account for a new dupack. */
@@ -1681,11 +1691,16 @@ static inline void tcp_reset_reno_sack(struct tcp_sock *tp) · 34 unmodified lines
16811691 int tcp_use_frto(struct sock *sk)
16821692 {
16831693 const struct tcp_sock *tp = tcp_sk(sk);
1694+ const struct inet_connection_sock *icsk = inet_csk(sk);
16841695 struct sk_buff *skb;
16851696
16861697 if (!sysctl_tcp_frto)
16871698 return 0;
16881699
1700+ /* MTU probe and F-RTO won't really play nicely along currently */
1701+ if (icsk->icsk_mtup.probe_size)
1702+ return 0;
1703+
16891704 if (IsSackFrto())
16901705 return 1;
16911706
@@ -2134,11 +2149,13 @@ static void tcp_verify_retransmit_hint(struct tcp_sock *tp, struct sk_buff *skb) · 442 unmodified lines
21342149 /* Mark head of queue up as lost. With RFC3517 SACK, the packets is
21352150 * is against sacked "cnt", otherwise it's against facked "cnt"
21362151 */
2137−static void tcp_mark_head_lost(struct sock *sk, int packets, int fast_rexmit)
2152+static void tcp_mark_head_lost(struct sock *sk, int packets)
21382153 {
21392154 struct tcp_sock *tp = tcp_sk(sk);
21402155 struct sk_buff *skb;
2141− int cnt;
2156+ int cnt, oldcnt;
2157+ int err;
2158+ unsigned int mss;
21422159
21432160 BUG_TRAP(packets <= tp->packets_out);
21442161 if (tp->lost_skb_hint) {
@@ -2157,13 +2174,25 @@ static void tcp_mark_head_lost(struct sock *sk, int packets, int fast_rexmit) · 12 unmodified lines
21572174 tp->lost_skb_hint = skb;
21582175 tp->lost_cnt_hint = cnt;
21592176
2177+ if (after(TCP_SKB_CB(skb)->end_seq, tp->high_seq))
2178+ break;
2179+
2180+ oldcnt = cnt;
21602181 if (tcp_is_fack(tp) || tcp_is_reno(tp) ||
21612182 (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED))
21622183 cnt += tcp_skb_pcount(skb);
21632184
2164− if (((!fast_rexmit || (tp->lost_out > 0)) && (cnt > packets)) ||
2165− after(TCP_SKB_CB(skb)->end_seq, tp->high_seq))
2166− break;
2185+ if (cnt > packets) {
2186+ if (tcp_is_sack(tp) || (oldcnt >= packets))
2187+ break;
2188+
2189+ mss = skb_shinfo(skb)->gso_size;
2190+ err = tcp_fragment(sk, skb, (packets - oldcnt) * mss, mss);
2191+ if (err < 0)
2192+ break;
2193+ cnt = packets;
2194+ }
2195+
21672196 if (!(TCP_SKB_CB(skb)->sacked & (TCPCB_SACKED_ACKED|TCPCB_LOST))) {
21682197 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST;
21692198 tp->lost_out += tcp_skb_pcount(skb);
@@ -2180,17 +2209,17 @@ static void tcp_update_scoreboard(struct sock *sk, int fast_rexmit) · 10 unmodified lines
21802209 struct tcp_sock *tp = tcp_sk(sk);
21812210
21822211 if (tcp_is_reno(tp)) {
2183− tcp_mark_head_lost(sk, 1, fast_rexmit);
2212+ tcp_mark_head_lost(sk, 1);
21842213 } else if (tcp_is_fack(tp)) {
21852214 int lost = tp->fackets_out - tp->reordering;
21862215 if (lost <= 0)
21872216 lost = 1;
2188− tcp_mark_head_lost(sk, lost, fast_rexmit);
2217+ tcp_mark_head_lost(sk, lost);
21892218 } else {
21902219 int sacked_upto = tp->sacked_out - tp->reordering;
2191− if (sacked_upto < 0)
2192− sacked_upto = 0;
2193− tcp_mark_head_lost(sk, sacked_upto, fast_rexmit);
2220+ if (sacked_upto < fast_rexmit)
2221+ sacked_upto = fast_rexmit;
2222+ tcp_mark_head_lost(sk, sacked_upto);
21942223 }
21952224
21962225 /* New heuristics: it is possible only after we switched
@@ -2524,7 +2553,7 @@ static void tcp_fastretrans_alert(struct sock *sk, int pkts_acked, int flag) · 327 unmodified lines
25242553 before(tp->snd_una, tp->high_seq) &&
25252554 icsk->icsk_ca_state != TCP_CA_Open &&
25262555 tp->fackets_out > tp->reordering) {
2527− tcp_mark_head_lost(sk, tp->fackets_out - tp->reordering, 0);
2556+ tcp_mark_head_lost(sk, tp->fackets_out - tp->reordering);
25282557 NET_INC_STATS_BH(LINUX_MIB_TCPLOSS);
25292558 }
25302559
@@ -2586,6 +2615,8 @@ static void tcp_fastretrans_alert(struct sock *sk, int pkts_acked, int flag) · 55 unmodified lines
25862615 case TCP_CA_Loss:
25872616 if (flag & FLAG_DATA_ACKED)
25882617 icsk->icsk_retransmits = 0;
2618+ if (tcp_is_reno(tp) && flag & FLAG_SND_UNA_ADVANCED)
2619+ tcp_reset_reno_sack(tp);
25892620 if (!tcp_try_undo_loss(sk)) {
25902621 tcp_moderate_cwnd(tp);
25912622 tcp_xmit_retransmit_queue(sk);
net/ipv4/tcp_output.c+3−0
@@ -1808,6 +1808,9 @@ void tcp_simple_retransmit(struct sock *sk) · 1807 unmodified lines
18081808 if (!lost)
18091809 return;
18101810
1811+ if (tcp_is_reno(tp))
1812+ tcp_limit_reno_sacked(tp);
1813+
18111814 tcp_verify_left_out(tp);
18121815
18131816 /* Don't muck with the congestion window here.
net/mac80211/ieee80211_sta.c+35−8
@@ -312,14 +312,12 @@ static void ieee80211_sta_wmm_params(struct net_device *dev, · 311 unmodified lines
312312 }
313313 }
314314
315−
316−static u32 ieee80211_handle_erp_ie(struct ieee80211_sub_if_data *sdata,
317− u8 erp_value)
315+static u32 ieee80211_handle_protect_preamb(struct ieee80211_sub_if_data *sdata,
316+ bool use_protection,
317+ bool use_short_preamble)
318318 {
319319 struct ieee80211_bss_conf *bss_conf = &sdata->bss_conf;
320320 struct ieee80211_if_sta *ifsta = &sdata->u.sta;
321− bool use_protection = (erp_value & WLAN_ERP_USE_PROTECTION) != 0;
322− bool use_short_preamble = (erp_value & WLAN_ERP_BARKER_PREAMBLE) == 0;
323321 DECLARE_MAC_BUF(mac);
324322 u32 changed = 0;
325323
@@ -350,6 +348,32 @@ static u32 ieee80211_handle_erp_ie(struct ieee80211_sub_if_data *sdata, · 24 unmodified lines
350348 return changed;
351349 }
352350
351+static u32 ieee80211_handle_erp_ie(struct ieee80211_sub_if_data *sdata,
352+ u8 erp_value)
353+{
354+ bool use_protection = (erp_value & WLAN_ERP_USE_PROTECTION) != 0;
355+ bool use_short_preamble = (erp_value & WLAN_ERP_BARKER_PREAMBLE) == 0;
356+
357+ return ieee80211_handle_protect_preamb(sdata,
358+ use_protection, use_short_preamble);
359+}
360+
361+static u32 ieee80211_handle_bss_capability(struct ieee80211_sub_if_data *sdata,
362+ struct ieee80211_sta_bss *bss)
363+{
364+ u32 changed = 0;
365+
366+ if (bss->has_erp_value)
367+ changed |= ieee80211_handle_erp_ie(sdata, bss->erp_value);
368+ else {
369+ u16 capab = bss->capability;
370+ changed |= ieee80211_handle_protect_preamb(sdata, false,
371+ (capab & WLAN_CAPABILITY_SHORT_PREAMBLE) != 0);
372+ }
373+
374+ return changed;
375+}
376+
353377 int ieee80211_ht_cap_ie_to_ht_info(struct ieee80211_ht_cap *ht_cap_ie,
354378 struct ieee80211_ht_info *ht_info)
355379 {
@@ -468,9 +492,7 @@ static void ieee80211_set_associated(struct net_device *dev, · 112 unmodified lines
468492 local->hw.conf.channel,
469493 ifsta->ssid, ifsta->ssid_len);
470494 if (bss) {
471− if (bss->has_erp_value)
472− changed |= ieee80211_handle_erp_ie(
473− sdata, bss->erp_value);
495+ changed |= ieee80211_handle_bss_capability(sdata, bss);
474496 ieee80211_rx_bss_put(dev, bss);
475497 }
476498
@@ -2116,6 +2138,11 @@ static void ieee80211_rx_mgmt_beacon(struct net_device *dev, · 1639 unmodified lines
21162138
21172139 if (elems.erp_info && elems.erp_info_len >= 1)
21182140 changed |= ieee80211_handle_erp_ie(sdata, elems.erp_info[0]);
2141+ else {
2142+ u16 capab = le16_to_cpu(mgmt->u.beacon.capab_info);
2143+ changed |= ieee80211_handle_protect_preamb(sdata, false,
2144+ (capab & WLAN_CAPABILITY_SHORT_PREAMBLE) != 0);
2145+ }
21192146
21202147 if (elems.ht_cap_elem && elems.ht_info_elem &&
21212148 elems.wmm_param && local->ops->conf_ht &&
net/netfilter/xt_hashlimit.c+5−18
@@ -466,38 +466,25 @@ static inline void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now) · 465 unmodified lines
466466
467467 static inline __be32 maskl(__be32 a, unsigned int l)
468468 {
469− return htonl(ntohl(a) & ~(~(u_int32_t)0 >> l));
469+ return l ? htonl(ntohl(a) & ~0 << (32 - l)) : 0;
470470 }
471471
472472 #if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE)
473473 static void hashlimit_ipv6_mask(__be32 *i, unsigned int p)
474474 {
475475 switch (p) {
476− case 0:
477− i[0] = i[1] = 0;
478− i[2] = i[3] = 0;
479− break;
480− case 1 ... 31:
476+ case 0 ... 31:
481477 i[0] = maskl(i[0], p);
482478 i[1] = i[2] = i[3] = 0;
483479 break;
484− case 32:
485− i[1] = i[2] = i[3] = 0;
486− break;
487− case 33 ... 63:
480+ case 32 ... 63:
488481 i[1] = maskl(i[1], p - 32);
489482 i[2] = i[3] = 0;
490483 break;
491− case 64:
492− i[2] = i[3] = 0;
493− break;
494− case 65 ... 95:
484+ case 64 ... 95:
495485 i[2] = maskl(i[2], p - 64);
496486 i[3] = 0;
497− case 96:
498− i[3] = 0;
499− break;
500− case 97 ... 127:
487+ case 96 ... 127:
501488 i[3] = maskl(i[3], p - 96);
502489 break;
503490 case 128:
net/wireless/nl80211.c+1−1
@@ -945,7 +945,7 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info) · 944 unmodified lines
945945 nla_len(info->attrs[NL80211_ATTR_STA_SUPPORTED_RATES]);
946946 params.listen_interval =
947947 nla_get_u16(info->attrs[NL80211_ATTR_STA_LISTEN_INTERVAL]);
948− params.listen_interval = nla_get_u16(info->attrs[NL80211_ATTR_STA_AID]);
948+ params.aid = nla_get_u16(info->attrs[NL80211_ATTR_STA_AID]);
949949
950950 if (parse_station_flags(info->attrs[NL80211_ATTR_STA_FLAGS],
951951 &params.station_flags))
net/xfrm/xfrm_user.c+1−1
@@ -288,7 +288,7 @@ static void copy_from_user_state(struct xfrm_state *x, struct xfrm_usersa_info * · 287 unmodified lines
288288 memcpy(&x->props.saddr, &p->saddr, sizeof(x->props.saddr));
289289 x->props.flags = p->flags;
290290
291− if (x->props.mode == XFRM_MODE_TRANSPORT)
291+ if (!x->sel.family)
292292 x->sel.family = p->family;
293293
294294 }