1 diff -ur linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_80211_tx.c linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_80211_tx.c
2 --- linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_80211_tx.c 2006-09-21 01:26:27.000000000 -0400
3 +++ linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_80211_tx.c 2006-09-21 01:30:18.000000000 -0400
5 iface = netdev_priv(dev);
8 + if (local->iw_mode == IW_MODE_MONITOR)
11 if (skb->len < ETH_HLEN) {
12 printk(KERN_DEBUG "%s: hostap_data_start_xmit: short skb "
13 "(len=%d)\n", dev->name, skb->len);
15 memcpy(skb_put(skb, ETH_ALEN), &hdr.addr4, ETH_ALEN);
19 iface->stats.tx_packets++;
20 iface->stats.tx_bytes += skb->len;
26 - printk(KERN_DEBUG "%s: hostap_master_start_xmit: short skb "
27 - "(len=%d)\n", dev->name, skb->len);
29 iface->stats.tx_dropped++;
31 Only in linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap: hostap_cs.c.orig
32 Only in linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap: hostap_cs.c.rej
33 diff -ur linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_hw.c linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_hw.c
34 --- linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_hw.c 2006-09-21 01:26:27.000000000 -0400
35 +++ linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_hw.c 2006-09-21 01:30:18.000000000 -0400
36 @@ -1005,6 +1005,35 @@
40 +static int prism2_monitor_enable(struct net_device *dev)
42 + if (hostap_set_word(dev, HFA384X_RID_CNFPORTTYPE, 5)) {
43 + printk(KERN_DEBUG "Port type setting for monitor mode "
48 + if (hfa384x_cmd(dev, HFA384X_CMDCODE_TEST | (0x0a << 8),
50 + printk(KERN_DEBUG "Could not enter testmode 0x0a\n");
54 + if (hostap_set_word(dev, HFA384X_RID_CNFWEPFLAGS,
55 + HFA384X_WEPFLAGS_PRIVACYINVOKED |
56 + HFA384X_WEPFLAGS_HOSTENCRYPT |
57 + HFA384X_WEPFLAGS_HOSTDECRYPT)) {
58 + printk(KERN_DEBUG "WEP flags setting failed\n");
62 + if (hostap_set_word(dev, HFA384X_RID_PROMISCUOUSMODE, 1)) {
63 + printk(KERN_DEBUG "Could not set promiscuous mode\n");
70 static int prism2_reset_port(struct net_device *dev)
72 @@ -1031,6 +1060,10 @@
76 + if (local->iw_mode == IW_MODE_MONITOR)
77 + /* force mode 0x0a after port 0 reset */
78 + return prism2_monitor_enable(dev);
80 /* It looks like at least some STA firmware versions reset
81 * fragmentation threshold back to 2346 after enable command. Restore
82 * the configured value, if it differs from this default. */
83 @@ -1466,6 +1499,10 @@
87 + if (local->iw_mode == IW_MODE_MONITOR)
88 + /* force mode 0x0a after port 0 reset */
89 + prism2_monitor_enable(dev);
92 local->hw_reset_tries = 0;
93 local->hw_resetting = 0;
95 local->func->hw_config = prism2_hw_config;
96 local->func->hw_reset = prism2_hw_reset;
97 local->func->hw_shutdown = prism2_hw_shutdown;
98 + local->func->monitor_enable = prism2_monitor_enable;
99 local->func->reset_port = prism2_reset_port;
100 local->func->schedule_reset = prism2_schedule_reset;
101 #ifdef PRISM2_DOWNLOAD_SUPPORT
102 Only in linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap: hostap_hw.c.orig
103 diff -ur linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_ioctl.c linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_ioctl.c
104 --- linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_ioctl.c 2006-09-21 01:26:27.000000000 -0400
105 +++ linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_ioctl.c 2006-09-21 01:30:18.000000000 -0400
106 @@ -1104,33 +1104,7 @@
108 printk(KERN_DEBUG "Enabling monitor mode\n");
109 hostap_monitor_set_type(local);
111 - if (hostap_set_word(dev, HFA384X_RID_CNFPORTTYPE,
112 - HFA384X_PORTTYPE_PSEUDO_IBSS)) {
113 - printk(KERN_DEBUG "Port type setting for monitor mode "
115 - return -EOPNOTSUPP;
118 - /* Host decrypt is needed to get the IV and ICV fields;
119 - * however, monitor mode seems to remove WEP flag from frame
121 - if (hostap_set_word(dev, HFA384X_RID_CNFWEPFLAGS,
122 - HFA384X_WEPFLAGS_HOSTENCRYPT |
123 - HFA384X_WEPFLAGS_HOSTDECRYPT)) {
124 - printk(KERN_DEBUG "WEP flags setting failed\n");
125 - return -EOPNOTSUPP;
128 - if (local->func->reset_port(dev) ||
129 - local->func->cmd(dev, HFA384X_CMDCODE_TEST |
130 - (HFA384X_TEST_MONITOR << 8),
132 - printk(KERN_DEBUG "Setting monitor mode failed\n");
133 - return -EOPNOTSUPP;
137 + return local->func->reset_port(dev);
141 @@ -1199,7 +1173,7 @@
142 local->iw_mode = *mode;
144 if (local->iw_mode == IW_MODE_MONITOR)
145 - hostap_monitor_mode_enable(local);
146 + return hostap_monitor_mode_enable(local);
147 else if (local->iw_mode == IW_MODE_MASTER && !local->host_encrypt &&
148 !local->fw_encrypt_ok) {
149 printk(KERN_DEBUG "%s: defaulting to host-based encryption as "
150 diff -ur linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_main.c linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_main.c
151 --- linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_main.c 2006-09-21 01:26:27.000000000 -0400
152 +++ linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_main.c 2006-09-21 01:30:18.000000000 -0400
154 if (local->iw_mode == IW_MODE_REPEAT)
155 return HFA384X_PORTTYPE_WDS;
156 if (local->iw_mode == IW_MODE_MONITOR)
157 - return HFA384X_PORTTYPE_PSEUDO_IBSS;
158 + return 5; /*HFA384X_PORTTYPE_PSEUDO_IBSS;*/
159 return HFA384X_PORTTYPE_HOSTAP;
162 Only in linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap: hostap_main.c.orig
163 diff -ur linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_pci.c linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_pci.c
164 --- linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_pci.c 2006-09-21 01:26:27.000000000 -0400
165 +++ linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_pci.c 2006-09-21 01:30:18.000000000 -0400
167 { 0x1260, 0x3873, PCI_ANY_ID, PCI_ANY_ID },
168 /* Samsung MagicLAN SWL-2210P */
169 { 0x167d, 0xa000, PCI_ANY_ID, PCI_ANY_ID },
170 + /* NETGEAR MA311 */
171 + { 0x1385, 0x3872, PCI_ANY_ID, PCI_ANY_ID },
175 Only in linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap: hostap_pci.c.orig
176 diff -ur linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_plx.c linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_plx.c
177 --- linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_plx.c 2006-09-21 01:26:27.000000000 -0400
178 +++ linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_plx.c 2006-09-21 01:30:18.000000000 -0400
180 { 0xc250, 0x0002 } /* EMTAC A2424i */,
181 { 0xd601, 0x0002 } /* Z-Com XI300 */,
182 { 0xd601, 0x0005 } /* Zcomax XI-325H 200mW */,
183 + { 0xd601, 0x0010 } /* Zcomax XI-325H 100mW */,
187 Only in linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap: hostap_plx.c.orig
188 diff -ur linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_wlan.h linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_wlan.h
189 --- linux-2.6.18-gentoo/drivers/net/wireless/hostap/hostap_wlan.h 2006-09-21 01:26:27.000000000 -0400
190 +++ linux-2.6.18-gentoo-rawtx/drivers/net/wireless/hostap/hostap_wlan.h 2006-09-21 01:30:18.000000000 -0400
192 int (*hw_config)(struct net_device *dev, int initial);
193 void (*hw_reset)(struct net_device *dev);
194 void (*hw_shutdown)(struct net_device *dev, int no_disable);
195 + int (*monitor_enable)(struct net_device *dev);
196 int (*reset_port)(struct net_device *dev);
197 void (*schedule_reset)(local_info_t *local);
198 int (*download)(local_info_t *local,