it was to early - there is no influence of rfkill - it works sometimes and sometimes not - and its something like 2 times yes and 10 times not.
The error when I run "/etc/init.d/network.sh restart":
wlan0 SIOCSIFFLAGS: Operation not possible due to RF-kill
when I run "rfkill list all" wlan0 is some time Soft blocked, but most of the time it is not blocked, because I can run later on "ifconfig wlan0 up" without any problems.
If you work with X, it would be possible to connect now with wifibox, if you know the essid - if you dont know the essid, you can install "iw" http://linuxwireless.org/en/users/Documentation/iw - and run as root: "iw dev wlan0 scan" - its the same as iwlist scan does and it works without any problems compared to iwlist - if the network is unencypted you can run "iw wlan0 connect essid" or use wifibox.
in my opendmx CD there is no X - so I have to solve this problem with rfkill. But I have no idea where to start - it must be a rights problem of rfkill - from the module rfkill and not from the program rfkill, but ???????.
Just the errors of dmesg:
ath5k 0000:00:0e.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, low) -> IRQ 10
ath5k 0000:00:0e.0: registered as 'phy0'
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
ath5k phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61)
cfg80211: Calling CRDA for country: US
wlan0: authenticate with 00:24:a5:42:9d:b8 (try 1)
wlan0: authenticated
wlan0: associate with 00:24:a5:42:9d:b8 (try 1)
wlan0: associate with 00:24:a5:42:9d:b8 (try 2)
wlan0: associate with 00:24:a5:42:9d:b8 (try 3)
wlan0: association with 00:24:a5:42:9d:b8 timed out
wlan0: direct probe to 00:24:a5:42:9d:b8 (try 1)
wlan0: direct probe to 00:24:a5:42:9d:b8 (try 2)
wlan0: direct probe to 00:24:a5:42:9d:b8 (try 3)
wlan0: direct probe to 00:24:a5:42:9d:b8 timed out