OpenWrt DFS: Unterschied zwischen den Versionen

Aus Opennet
Wechseln zu: Navigation, Suche
Zeile 23: Zeile 23:
 
  /trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/hostapd-wpad-mini/hostapd-20131120/src/ap/hw_features.c:885
 
  /trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/hostapd-wpad-mini/hostapd-20131120/src/ap/hw_features.c:885
  
Three place on source can generate this error. Now, find the exact place. Add
+
Three places in source code can generate this error. Now, find the exact place. Add more debug messages manually.
 +
 
 +
'''2nd Run'''
 +
 
 +
Again compiles and executed we get error
 +
Thu Jan  1 00:00:49 1970 daemon.warn hostapd: wlan0: IEEE 802.11 debug oni: select_hw_mode
 +
 
 +
Therefore the reason for this error is
 +
      ...
 +
      case HOSTAPD_CHAN_INVALID:
 +
        default:
 +
          hostapd_notify_bad_chans(iface);
 +
        return -3;
 +
      ...
 +
new method to search for
 +
  hostapd_check_chans(iface)

Version vom 24. Januar 2014, 21:19 Uhr

Enable DFS for OpenWRT

Aim is to enable DFS for 5GHz wifi band. Until today we found no usable solution to integrade DFS suipport into OpenWRT. Without DFS there is no official 802.11n outdoor channels support.

In the following we will log our approach to (try to) enable DFS.

Compile trunk of OpenWRT

On 2014-01-24 we made SVN checkout of OpenWRT trunk with rev. 39385. All compiled well.

1st Run

Thu Jan  1 00:08:10 1970 daemon.notice netifd: radio0 (933): Configuration file: /var/run/hostapd-phy0.conf
Thu Jan  1 00:08:10 1970 daemon.notice netifd: radio0 (933): wlan0: IEEE 802.11 Configured channel (112) not found from the channel list of current mode (2) IEEE 802.11a
Thu Jan  1 00:08:10 1970 daemon.notice netifd: radio0 (933): wlan0: IEEE 802.11 Hardware does not support configured channel
Thu Jan  1 00:08:10 1970 daemon.notice netifd: radio0 (933): Could not select hw_mode and channel. (-3)
Thu Jan  1 00:08:10 1970 daemon.notice netifd: radio0 (933): wlan0: Unable to setup interface.
Thu Jan  1 00:08:10 1970 daemon.notice netifd: radio0 (933): hostapd_free_hapd_data: Interface wlan0 wasn't started
Thu Jan  1 00:08:10 1970 daemon.notice netifd: radio0 (933): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory
Thu Jan  1 00:08:10 1970 daemon.notice netifd: radio0 (933): Command failed: Invalid argument
Thu Jan  1 00:08:10 1970 daemon.notice netifd: radio0 (933): Device setup failed: HOSTAPD_START_FAILED

Message "not found from the channel list of current mode" origin:

/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/hostapd-wpad-mini/hostapd-20131120/src/ap/hw_features.c:885

Three places in source code can generate this error. Now, find the exact place. Add more debug messages manually.

2nd Run

Again compiles and executed we get error

Thu Jan  1 00:00:49 1970 daemon.warn hostapd: wlan0: IEEE 802.11 debug oni: select_hw_mode

Therefore the reason for this error is

     ...
     case HOSTAPD_CHAN_INVALID:
       default:
          hostapd_notify_bad_chans(iface);
       return -3;
     ...

new method to search for

 hostapd_check_chans(iface)
Meine Werkzeuge
Namensräume

Varianten
Aktionen
Start
Opennet
Kommunikation
Karten
Werkzeuge