From 7e8be72647133518e073b30cfb60e7991f89582c Mon Sep 17 00:00:00 2001 From: Moritz Rosenthal Date: Thu, 22 Sep 2016 17:36:07 +0200 Subject: [PATCH] Fixed malformed printk statements and did some makeup (#2) * Fixed malformed printk statements and did some makeup --- .../922-mac80211_packet_tunnel-linux-4.4.patch | 10 +++++----- .../922-mac80211_packet_tunnel-linux-4.8.patch | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/openwrt/mac80211_patches/922-mac80211_packet_tunnel-linux-4.4.patch b/openwrt/mac80211_patches/922-mac80211_packet_tunnel-linux-4.4.patch index bcf0690..6780623 100644 --- a/openwrt/mac80211_patches/922-mac80211_packet_tunnel-linux-4.4.patch +++ b/openwrt/mac80211_patches/922-mac80211_packet_tunnel-linux-4.4.patch @@ -532,7 +532,7 @@ index bdc224d..5f1f424 100644 + hdrlen = ieee80211_hdrlen(hdr->frame_control); + + if (skb->len < hdrlen) { -+ printk(KERN_WARNING, "droping packet for TO SMALL"); ++ printk(KERN_WARNING "dropping packet (too small)\n"); + goto error; + } + @@ -556,13 +556,13 @@ index bdc224d..5f1f424 100644 + sdata = IEEE80211_DEV_TO_SUB_IF(dev); + + if (sdata->vif.type != NL80211_IFTYPE_AP) { -+ printk(KERN_WARNING, "droping packet for NOT AP"); ++ printk(KERN_WARNING "dropping packet (not AP)\n"); + goto error_rcu; + } + + chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); + if (!chanctx_conf) { -+ printk(KERN_WARNING, "droping packet for NO CHANTX"); ++ printk(KERN_WARNING "dropping packet (no chanCTX)\n"); + goto error_rcu; + } + @@ -593,7 +593,7 @@ index bdc224d..5f1f424 100644 + */ + if (!cfg80211_reg_can_beacon(local->hw.wiphy, chandef, + sdata->vif.type)) { -+ printk(KERN_WARNING, "droping packet for CAN NOT BEACON"); ++ printk(KERN_WARNING "dropping packet (cannot BEACON)\n"); + goto error_rcu; + } + /* */ @@ -603,7 +603,7 @@ index bdc224d..5f1f424 100644 + if (sta && test_sta_flag(sta, WLAN_STA_AUTHORIZED)) { + skb->pkt_type = PACKET_OTHERHOST; + } else { -+ printk(KERN_WARNING, "droping packet for STA not AUTHORIZED"); ++ printk(KERN_WARNING "dropping packet (STA not authorized)\n"); + goto error_rcu; + } + } else { diff --git a/openwrt/mac80211_patches/922-mac80211_packet_tunnel-linux-4.8.patch b/openwrt/mac80211_patches/922-mac80211_packet_tunnel-linux-4.8.patch index 3921df9..dc71a11 100644 --- a/openwrt/mac80211_patches/922-mac80211_packet_tunnel-linux-4.8.patch +++ b/openwrt/mac80211_patches/922-mac80211_packet_tunnel-linux-4.8.patch @@ -538,7 +538,7 @@ Allows for kernel side interception and injection of IEEE 802.11 frames. + hdrlen = ieee80211_hdrlen(hdr->frame_control); + + if (skb->len < hdrlen) { -+ printk(KERN_WARNING, "droping packet for TO SMALL"); ++ printk(KERN_WARNING "dropping packet (too small)\n"); + goto error; + } + @@ -562,13 +562,13 @@ Allows for kernel side interception and injection of IEEE 802.11 frames. + sdata = IEEE80211_DEV_TO_SUB_IF(dev); + + if (sdata->vif.type != NL80211_IFTYPE_AP) { -+ printk(KERN_WARNING, "droping packet for NOT AP"); ++ printk(KERN_WARNING "dropping packet (not AP)\n"); + goto error_rcu; + } + + chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); + if (!chanctx_conf) { -+ printk(KERN_WARNING, "droping packet for NO CHANTX"); ++ printk(KERN_WARNING "dropping packet (no chanCTX)\n"); + goto error_rcu; + } + @@ -599,7 +599,7 @@ Allows for kernel side interception and injection of IEEE 802.11 frames. + */ + if (!cfg80211_reg_can_beacon(local->hw.wiphy, chandef, + sdata->vif.type)) { -+ printk(KERN_WARNING, "droping packet for CAN NOT BEACON"); ++ printk(KERN_WARNING "dropping packet (cannot BEACON)\n"); + goto error_rcu; + } + /* */ @@ -609,7 +609,7 @@ Allows for kernel side interception and injection of IEEE 802.11 frames. + if (sta && test_sta_flag(sta, WLAN_STA_AUTHORIZED)) { + skb->pkt_type = PACKET_OTHERHOST; + } else { -+ printk(KERN_WARNING, "droping packet for STA not AUTHORIZED"); ++ printk(KERN_WARNING "dropping packet (STA not authorized)\n"); + goto error_rcu; + } + } else {