Thanks for your script and the working config file. 1/ here is my output of "cat /proc/sys/fs/file-max" 333653 2/ I have compared the working hostapd.conf file with mine here are the differences: (working file -> mine) #bridge=br0 -> bridge=br0 ssid=home -> ssid=Sweet Home 2 (and wpa_passphrase changed) then it gives me another error message when I launch hostapd: xabix@HTPC:~$ sudo hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 nl80211: Interface wlan0 is in bridge br0 nl80211: Add own interface ifindex 3 nl80211: Add own interface ifindex 4 nl80211: New interface mon.wlan0 created: ifindex=8 nl80211: Add own interface ifindex 8 Could not set interface mon.wlan0 flags: Success nl80211: Remove interface ifindex=8 nl80211: Failed to set interface wlan0 into AP mode nl80211 driver initialization failed. rmdir[ctrl_interface]: No such file or directory ELOOP: remaining socket: sock=4 eloop_data=0x9a988f0 user_data=0x9a9a760 handler=0x807c5e0 ELOOP: remaining socket: sock=6 eloop_data=0x9a9c548 user_data=(nil) handler=0x8086770 syslog: Jul 26 14:39:01 HTPC CRON[3689]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete) Jul 26 14:40:13 HTPC NetworkManager[1266]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0) Jul 26 14:40:13 HTPC NetworkManager[1266]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0): no ifupdown configuration found. Jul 26 14:40:13 HTPC kernel: [ 6327.389619] rtl8192ce:_rtl92ce_llt_write():<0-0> Failed to polling write LLT done at address 0! Jul 26 14:40:13 HTPC kernel: [ 6327.389629] rtl8192ce:rtl92ce_hw_init():<0-0> Init MAC failed Jul 26 14:40:13 HTPC avahi-daemon[1258]: Withdrawing workstation service for mon.wlan0. Jul 26 14:40:13 HTPC NetworkManager[1266]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0) Jul 26 14:41:46 HTPC kernel: [ 6420.634598] rtl8192ce:_rtl92ce_llt_write():<0-0> Failed to polling write LLT done at address 0! Jul 26 14:41:46 HTPC kernel: [ 6420.634606] rtl8192ce:rtl92ce_hw_init():<0-0> Init MAC failed Jul 26 14:41:46 HTPC NetworkManager[1266]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0) Jul 26 14:41:46 HTPC NetworkManager[1266]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0): no ifupdown configuration found. Jul 26 14:41:46 HTPC avahi-daemon[1258]: Withdrawing workstation service for mon.wlan0. Jul 26 14:41:46 HTPC NetworkManager[1266]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0) I will try your script and report. Xabix -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html