Subject: Re: [Bugme-new] [Bug 11144] New: dhcp doesn't work with iwl4965

From: François Valenduc<[email-masked]>
Date: Wed, 23 Jul 2008 09:59:24 +0200

François Valenduc a écrit :
> Andrew Morton a écrit :
>> (switched to email.  Please respond via emailed reply-to-all, not via 
>> the
>> bugzilla web interface).
>>
>> On Tue, 22 Jul 2008 03:21:33 -0700 (PDT) 
>> [email-masked] wrote:
>>
>>  
>>> http://bugzilla.kernel.org/show_bug.cgi?id=11144
>>>
>>>            Summary: dhcp doesn't work with iwl4965
>>>            Product: Networking
>>>            Version: 2.5
>>>      KernelVersion: 2.6.26-git7
>>>           Platform: All
>>>         OS/Version: Linux
>>>               Tree: Mainline
>>>             Status: NEW
>>>           Severity: normal
>>>           Priority: P1
>>>          Component: Wireless
>>>         AssignedTo: [email-masked]
>>>         ReportedBy: [email-masked]
>>>
>>>
>>> Latest working kernel version: 2.6.26-git6
>>> Earliest failing kernel version: 2.6.26-git7
>>>     
>>
>> A very fresh regression.
>>
>>  
>>> Distribution: Gentoo
>>> Hardware Environment: Packard Bell MB86, iwl4965
>>> Software Environment: dhcpcd
>>> Problem Description: I can't get an IP address via DHCP with my 
>>> wireless connection. I have an Intel
>>> Wireless 4965 card and I use WPA personal with AES encryption. After a
>>> git-bisect run, it seems the first bad commit is the following:
>>>
>>> commit 175f9c1bba9b825d22b142d183c9e175488b260c
>>> Author: Jussi Kivilinna <[email-masked]>
>>> Date:   Sun Jul 20 00:08:47 2008 -0700
>>>
>>>     net_sched: Add size table for qdiscs
>>>
>>>     Add size table functions for qdiscs and calculate packet size in
>>>     qdisc_enqueue().
>>>
>>>     Based on patch by Patrick McHardy
>>>      http://marc.info/?l=linux-netdev&m=115201979221729&w=2
>>>
>>>
>>>     
>>
>> A whole pile of networking patches went into mainline about 12 hours
>> ago, one of which might have fixed this.  Can you please test
>> 2.6.26-git10 once it has appeared and let us know the result?
>>
>>
>> Thanks.
>>
>>
>>   
>
> The problem still occurs with 2.6.26-git-10. But if I use a static 
> address instead of DHCP, the connection work. DHCP also work with my 
> ethernet card (a Marvell yukon which use the sky2 driver). But DHCP 
> doesn't work with my wireless connection using the iwl4965 driver. As 
> I said, my router offer several time a correct IP adress but it is not 
> accepted by my computer. I don't use traffic shaping (see my iptables 
> rules). Furthermore, the problem still occurs if I disable iptables.
> Does anybody have an idea to solve the problem ?
>
> Thanks for your help,
> François
>
> P.S: why don't you want to use the bugzilla interface ?
>
I forgot to add the rules for iptables.

# Generated by iptables-save v1.3.8 on Sun May  4 17:48:03 2008
*filter
:INPUT ACCEPT [5:952]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1192099:595387635]

# accept all from localhost
-A INPUT -s 127.0.0.1 -j ACCEPT

# accept all previously established connections
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

# ssh
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT

#web
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

# ftp
-A INPUT -p tcp -m state --state NEW -m tcp --dport 20:21 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 30000 -j ACCEPT

# Windows / Samba
-A INPUT -p tcp -m state --state NEW -m tcp --dport 137:139 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 137:139 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 426 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 445 -j ACCEPT
#swat
-A INPUT -p tcp -m state --state NEW -m tcp --dport 902 -j ACCEPT

#aMule
-A INPUT -p tcp -m state --state NEW -m tcp --dport 4662 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 4672 -j ACCEPT

#XDMCP
-A INPUT -p udp -m state --state NEW -m udp --dport 177 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 6000 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 41272 -j ACCEPT

#NFS server
-A INPUT -p tcp -m state --state NEW -m tcp --dport 111 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 111 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 2049 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 2049 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 4001 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 4001 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 4002 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 4002 -j ACCEPT

#VNC server
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5900:5901 -j ACCEPT

#CUPS server
-A INPUT -p tcp -m state --state NEW -m tcp --dport 631 -j ACCEPT

#distcc
-A INPUT -p tcp -m state --state NEW -m tcp --dport 3632 -j ACCEPT

#rsync
-A INPUT -p tcp -m state --state NEW -m tcp --dport 873 -j ACCEPT

#git
-A INPUT -p tcp -m state --state NEW -m tcp --dport 9418 -j ACCEPT

#ping
-A INPUT -p icmp -j ACCEPT

#IPSec
-A INPUT -p udp --dport 500 -m state --state NEW -j ACCEPT
-A OUTPUT -p udp --dport 500 -m state --state NEW -j ACCEPT

-A INPUT -p esp -j ACCEPT
-A OUTPUT -p esp -j ACCEPT

-A INPUT -p ah -j ACCEPT
-A OUTPUT -p ah -j ACCEPT

#reject everything else
-A INPUT -j REJECT --reject-with icmp-port-unreachable

COMMIT