Commit Graph

75 Commits

Author SHA1 Message Date
367dd2f939 Use 'interface-name:' to set an interface as unmanaged in NetworkManager.
Form NetworkManager 0.9.10 and above they introduce 'interface-name:'
for 'unmanaged-devices', use this method instead of 'mac:' since it
reduce many problems.

Fix #33
2014-08-31 14:04:19 +03:00
142c1b76c8 Remove a trailing whitespace 2014-08-31 12:49:45 +03:00
c6eea21020 Change MAC address only if needed
Some virtual interfaces have a different MAC address from their real
interfaces and their drivers disallow us to change it. In this case
we don't need to change the MAC address anyway.

With this we can avoid errors like 'RTNETLINK answers: Invalid argument'.
2014-08-28 21:34:19 +03:00
c04f7f0bd8 Redirect iptables output to /dev/null on cleanup 2014-08-28 20:50:09 +03:00
503e715d4e update README.md 2014-08-28 20:46:52 +03:00
309b56f5fc Some drivers still use the old WiFi subsystem, use iwconfig/iwlist in these cases
Fixes #43
2014-08-28 20:20:25 +03:00
6252e6fd88 minor change 2014-08-28 09:01:00 +03:00
fd75f56635 Do not allow user to use `phyX' of the interface 2014-08-28 08:40:15 +03:00
3f49258758 Check at the beginning if WIFI_IFACE is a WiFi interface or not 2014-08-28 01:24:10 +03:00
64790ff5f2 Check in `iw phy phyX info' if we can transmit to the selected channel 2014-08-28 01:24:10 +03:00
258fbc1f94 increase the sleep of networkmanager_rm/add_unmanaged 2014-08-19 00:06:34 +03:00
701becace9 fix a typo 2014-08-17 04:43:35 +03:00
92b696efcf handle service's stop correctly 2014-08-17 04:22:23 +03:00
d388c593ab disable SIGINT in cleanup(), so the user will not be able to interrupt it 2014-08-17 02:16:12 +03:00
4758bcf6d9 Merge branch 'hashken-hostapd_bug' 2014-08-17 01:16:50 +03:00
d9284c3d6b Check version of NetworkManager
* Check the version of Network Manager and accordingly issue commands
as nmcli >= 0.9.10 is not backwards compatible
* Also, check if NetworkManager is running before issuing related
suggestions
2014-08-17 01:14:24 +03:00
0e9a81ff94 Give remedial suggestion for hostapd bug
Hostapd v2 introduces a bug which currently throws the following error
and initialization fails
    nl80211: Could not configure driver mode
    nl80211 driver initialization failed.
    hostapd_free_hapd_data: Interface wlp3s0ap wasn't started

More Info: https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1289047

Give a suggestive message to the user when hostapd fails because of the
above bug outlining the workaround mentioned in the above bug report.
2014-08-17 01:13:42 +03:00
9ab97af451 networkmanager_is_running: we don't need to redirect stderr in /dev/null 2014-08-17 01:10:50 +03:00
89a457d597 Add `version_cmp' function 2014-08-16 23:13:32 +03:00
38063a6160 systemd service: start create_ap after network.target 2014-08-16 18:31:29 +03:00
609949d26a make dnsmasq able to run even if another instance exist 2014-08-15 11:41:30 +03:00
e37caff43d README.md: Update installation section
Fixes #27
2014-08-04 15:17:43 +03:00
2491ef2a3a Better parse of nmcli output 2014-08-04 14:03:15 +03:00
6acf353c9d networkmanager_is_running: Use 'nmcli g' first and if it fails fallback to 'nmcli nm' 2014-08-03 14:45:27 +03:00
ed7d3f36f9 Use 'nmcli' to determine if NetworkManager switched adapter to unmanaged
Fix #29
2014-07-28 19:24:02 +03:00
709652041f Add CCMP in wpa_pairwise of hostapd.conf 2014-06-07 16:53:28 +03:00
cfc9630338 Merge pull request #22 from eduardohenriquearnold/master
Update service file to fix cleaning process when service is requested to stop
2014-06-04 09:49:48 +03:00
993bdb9ce6 Update service file to fix cleaning process
Inserted the ExecStop directive to kill the hostapd process in order for the script to be able to receive the SIGINT signal. This enables the cleaning process to work when requesting the service to stop.
2014-06-03 13:45:19 +01:00
104c55606f We don't need to set an IP to the bridged interface
Fix #18
2014-04-05 22:08:33 +03:00
ef1a466a13 Merge pull request #17 from oaix/master
add IEEE 802.11n support
2014-04-05 12:47:06 +03:00
1cd94e81d0 add IEEE 802.11n support 2014-04-03 20:57:26 +08:00
d556cd1fd2 Merge pull request #12 from mika/master
Redirect error messages to stderr
2014-02-21 10:11:12 +02:00
b77ccb0ecc Redirect error messages to stderr 2014-02-21 08:35:41 +01:00
a368035082 Add error messages about --no-virt 2013-12-23 00:32:25 +02:00
29d609cf24 Add --no-virt option
Fixes #10
2013-12-17 21:48:59 +02:00
5abc21fb7e Check if the directory of NetworkManager.conf exists and not the actual file 2013-12-17 21:39:19 +02:00
3c3b3b32d6 Makefile: copy create_ap.service only if /lib/systemd/system exists 2013-12-15 16:29:08 +02:00
452689bdbb Merge branch 'WebReflection-patch-1'
Fixes #8
2013-12-15 12:38:48 +02:00
46723a9686 Update patch for '--driver' argument 2013-12-15 12:38:06 +02:00
ba9ffebcad make hosted able to use rtl871xdrv or other drivers
there are devices that are not supported as nl80211 … this change makes possible to specify `--driver rtl871xdrv` when/if needed
2013-12-14 17:18:54 -08:00
94bbf1d030 Improve automation for NetworkManager's unmanaged-devices 2013-12-05 21:27:31 +02:00
2b40f03e45 Minor change 2013-12-04 16:19:36 +02:00
1d809958d3 Fix a typo 2013-12-04 16:19:25 +02:00
3c7b4079c5 Rephrase 'Useful informations' in usage 2013-12-04 16:01:02 +02:00
8bee5d61ba Update README file 2013-12-04 15:59:13 +02:00
b39f4466de Add Makefile 2013-12-04 15:38:51 +02:00
bc19cd99dd Add BSD License 2013-12-04 15:14:15 +02:00
d03951bf29 Set broadcast ip address 2013-12-02 23:53:38 +02:00
67588aa7a7 Make sure the virtual interface will have a new mac address.
Fixes issues #6 and #7
2013-12-02 22:02:31 +02:00
40249cfd93 bridge mode now works with UFW 2013-11-29 23:49:47 +02:00