copy leftover patch from 2.6.23
[openwrt-10.03/.git] / package / madwifi / patches / 313-long_preamble.patch
1 Index: madwifi-dfs-r3053/net80211/ieee80211_output.c
2 ===================================================================
3 --- madwifi-dfs-r3053.orig/net80211/ieee80211_output.c  2008-01-10 15:40:39.777239675 +0100
4 +++ madwifi-dfs-r3053/net80211/ieee80211_output.c       2008-01-10 15:41:05.214689275 +0100
5 @@ -1297,7 +1297,7 @@
6                 erp |= IEEE80211_ERP_NON_ERP_PRESENT;
7         if (ic->ic_flags & IEEE80211_F_USEPROT)
8                 erp |= IEEE80211_ERP_USE_PROTECTION;
9 -       if (ic->ic_flags & IEEE80211_F_USEBARKER)
10 +       if ((ic->ic_flags & IEEE80211_F_USEBARKER) || (ic->ic_nonerpsta > 0))
11                 erp |= IEEE80211_ERP_LONG_PREAMBLE;
12         *frm++ = erp;
13         return frm;