Modify

Opened 6 years ago

Closed 6 years ago

Last modified 21 months ago

#8074 closed defect (invalid)

IP address setting from /etc/config/network ignored.

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

The current OpenWRT trunk seems to ignore the IP address setting for the wireless section.

In my setup (current trunk and no custom modifications so far), I always get this result from ifconfig:

eth0.0    Link encap:Ethernet  HWaddr 00:17:31:ED:AA:BB  
          inet addr:192.168.9.254  Bcast:192.168.9.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1841 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1328 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:205081 (200.2 KiB)  TX bytes:374671 (365.8 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:21:27:AA:BB:CC  
          inet addr:192.168.9.254  Bcast:192.168.9.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:440 (440.0 B)

For some reason the IP address from the LAN interface is also being assigned to wlan0. This can manually be fixed by calling "ifup wlan0" after enabling the interface with uci, but obviously there is something broken.

System: Asus WL-500gP, Atheros wifi (ath5k), OpenWRT trunk

Attachments (1)

network (902 bytes) - added by anonymous 6 years ago.
/etc/network/config

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by anonymous

/etc/network/config

comment:1 Changed 6 years ago by anonymous

Sorry the file description is wrong. Of course this is the /etc/config/network file ;)

comment:2 Changed 6 years ago by anonymous

I was able to track this down further to the "wifi up" command.

I edited the switch at the end of /sbin/wifi to call ifup after enabling the interface and it seems to work:

case "$1" in
        down) wifi_updown "disable" "$2";;
        detect) wifi_detect "$2";;
        *)
                wifi_updown "enable" "$2"
                ifup wlan
                ;;
esac

A cleaner fix is still needed, as this hack might only work in my environment.

comment:3 Changed 6 years ago by anonymous

Please close as "invalid".

I had "option network lan" in my wireless config file. Sorry for the noise.

comment:4 Changed 6 years ago by florian

  • Resolution set to invalid
  • Status changed from new to closed

comment:5 Changed 21 months ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.