Hi,

> Do you have any hints for me on how I can make my wlan0 (ath5k) fail
> link up commands?

Sure, that's easy:

ip link set wlan0 down
iwconfig wlan0 mode repeater # set WDS mode but no peer address
ip link set wlan0 up

> On lör, 2008-07-05 at 06:36 +0200, Johannes Berg wrote:
> > # ip link set wlan0 up
> 
> I think I've found the right place in the code, but could you please do
> a echo $? after the above command to see if the exit code is 2?
> 
> ip/iplink.c, line 366 (in iplink_modify):
> 
>         if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
>                 exit(2);
> 
> 
> There should probably be an error message before the exit function...

Heh, looks like.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to