No DHCP on thinkpad x24 (hostap_pci)

Duncan Mak duncan
Fri Nov 29 10:33:56 PST 2002


On Thu, 2002-11-21 at 17:40, Duncan Mak wrote:
> Hi,
> 
> I have a Thinkpad X24 running redhat 7.3 and I've been using the
> wlan-ng drivers with the built-in wavelan card. When I tried to use
> the hostap driver (hostap_pci), even though it builds fine and loads
> fine, DHCP fails when I try to bring up the interface.  I switch back
> to prism2_pci and DHCP works again.
> 

A quick update:

Gerald Britton sent me a e-mail with a little patch; after applying that
patch, everything started working.

--- hostap_hw.c~	Sat Oct 12 11:01:16 2002
+++ hostap_hw.c	Thu Nov 28 00:41:36 2002
@@ -1806,7 +1806,7 @@
 		fc |= WLAN_FC_TODS;
 		/* To DS: Addr1 = BSSID, Addr2 = SA, Addr3 = DA;
 		 * firmware sets BSSID */
-		/* memcpy(&txdesc.addr1, local->bssid, ETH_ALEN); */
+		memcpy(&txdesc.addr1, local->bssid, ETH_ALEN);
 		memcpy(&txdesc.addr2, skb->data + ETH_ALEN, ETH_ALEN);
 		memcpy(&txdesc.addr3, skb->data, ETH_ALEN);
 	} else if (local->iw_mode == IW_MODE_ADHOC) {

If this doesn't break someone else's config, this should probably go
into CVS, right?

-- 
Duncan Mak <duncan at ximian.com>




More information about the Hostap mailing list