Commit Graph

138 Commits

Author SHA1 Message Date
bddf2dd0e8 Merge pull request #66 from hashken/bash_completion
Add bash completion
2015-04-16 22:12:23 +03:00
e828664edd bash_completion: Bug fixes and improvements
* Correct switch --ieee80211 to --ieee80211n
* Correct switch -p to -g
* Get list of valid channels from iw list
* Add country code 00
* Get completion for --stop switch from output of --list
2015-04-16 23:13:36 +05:30
8a96c7f9cb Add extended bash completion for all switches 2015-04-16 22:39:46 +05:30
9c24f50dee Add new file that provides bash completion routine 2015-04-16 22:39:46 +05:30
27c39948ca Make --list to work from any user 2015-04-16 19:49:15 +03:00
81f5a65c0b Merge pull request #67 from hashken/help_error_code
Ensure error code is 0 when --help is invoked
2015-04-12 17:33:47 +03:00
f8ebf4ae27 Merge pull request #68 from hashken/progname_optimize
Invoke basename only once to obtain script name
2015-04-12 17:33:31 +03:00
795bb14a38 Invoke basename only once to obtain script name
Minor optimization that ensures basename is not invoked multiple times.
2015-04-12 19:44:42 +05:30
bec82aa65e Ensure error code is 0 when --help is invoked 2015-04-12 19:38:08 +05:30
1ec0780599 Masquerade only AP subnet 2015-04-05 19:58:07 +03:00
4d654b76a1 Load nf_nat_pptp module if it exists
This will enable clients to establish PPTP connections.
2015-04-01 23:50:57 +03:00
56b155304c Merge pull request #64 from hashken/help_stdout
Redirect --help output to stdout instead of stderr
2015-03-28 21:01:33 +02:00
fbeb5c918a Redirect --help output to stdout instead of stderr 2015-03-28 18:37:07 +05:30
d0a013eaf8 Check every 2 seconds if haveged is needed 2015-03-25 01:23:08 +02:00
d55adb7d50 Add version number, v0.1 2015-03-13 19:55:20 +02:00
04fa4860d1 Use `-w 2' with rtl* drivers 2015-03-04 23:56:11 +02:00
b750e70de6 Add instructions for Realtek adapters 2015-03-04 23:56:11 +02:00
f06e24721a Use ip' instead of brctl'
This removes bridge-utils from dependencies.
2015-02-22 22:01:31 +02:00
796c420589 check if bridge-nf-call-iptables exists before we use it 2015-02-22 22:01:31 +02:00
9ecb40eb6d quote string in [[ -n $str ]] 2015-02-22 22:01:25 +02:00
ac33c5b169 hide all error messages from cleanup function 2015-02-22 21:40:40 +02:00
3460580ce2 Detect if --driver=rtl871xdrv is needed 2015-02-14 16:58:58 +02:00
9dce88aee9 Add emacs file variables 2014-12-15 21:13:57 +02:00
362bbda3f5 Run clean_exit instead of die on SIGINT/SIGUSR1 2014-12-15 21:09:34 +02:00
d8c85b460a Add --daemon 2014-12-14 15:59:40 +02:00
a1c6c411d3 Send USR1 instead of INT in send_stop()
If create_ap is not attached on a tty, then kill -INT does not
work. Use -USR1 instead.
2014-12-14 15:55:25 +02:00
1c89b44056 Add --stop and --list 2014-12-11 22:13:00 +02:00
48beb35b64 Handle SIGINT sent by kill 2014-12-11 21:31:25 +02:00
814ddf9100 Add --mac option 2014-11-23 19:06:57 +02:00
70b538be7c README.md: update infos about Gentoo installation
Fix #55
2014-11-11 08:03:32 +02:00
5cbe80f9c4 Set beacon interval to 100ms
Fix #53
2014-11-08 16:50:28 +02:00
f831ad98d6 Add support for 5GHz frequency band
Close #52
2014-11-03 23:23:32 +02:00
309e8e353b Add --country option
Close #42
2014-11-02 13:19:25 +02:00
678053994e nmcli arguments was changed in version 0.9.9 not 0.9.10
Fix #51
2014-10-10 00:21:30 +03:00
b49f48a4e2 Add --fix-unmanaged option 2014-10-09 20:52:39 +03:00
9d7806882a Minor change in an output message 2014-10-01 12:11:24 +03:00
3db732ed50 Get the current channel with 'iw dev wlanN link'
With older versions of iw we can not get the channel that we
are currently associated with. So we cannot detect if we have
to fallback to that channel. Because of this, hostapd exits
with the following errors:

    Failed to set beacon parameters
    Interface initialization failed
    ap0: interface state UNINITIALIZED->DISABLED
    ap0: AP-DISABLED
    ap0: Unable to setup interface.
    hostapd_free_hapd_data: Interface ap0 wasn't started

A solution is to get the frequency from 'iw dev wlanN link' and
convert it to the channel number.

Fix #50
2014-10-01 12:04:57 +03:00
bec1513a07 Make sure that all command outputs are in english, so we can parse them correctly
Fix #49
2014-09-25 08:12:21 +03:00
ec0df440f8 Add 'managed' virtual interface instead of '__ap', hostapd will change it anyway 2014-09-21 18:28:41 +03:00
2dcc407000 Show error if udev renamed the interface 2014-09-21 17:57:07 +03:00
ed78f36f41 Revert 488f84e since f589df0 provides a better solution 2014-09-20 23:45:10 +03:00
1eb11077d3 Change the mac address of the virtual interface if another interface has the same 2014-09-20 23:18:28 +03:00
3632f29912 rename can_have(_sta_and)_ap to can_be(_sta_and)_ap 2014-09-20 23:18:28 +03:00
408e25b732 do not limit bridge interfaces to 100 2014-09-20 23:13:41 +03:00
757c3d2c1f Use /sys/class/net to get the interfaces and mac addresses 2014-09-20 23:13:41 +03:00
5b2d7984db get_new_macaddr: add 1 to the mac address instead of starting from 0x14
If someone have 2 adapters with the same hardware, there is a possibility
the first 5 bytes of their mac address to be the same.
I this case we will have mac address collision if we change both of them to
XX:XX:XX:XX:XX:14, one way to avoid this is to add 1 to their last byte.

Fix #47
2014-09-18 20:54:37 +03:00
ddd6bfad45 Merge pull request #48 from blucell/patch-1 2014-09-18 05:50:46 +00:00
04c5695c8e Update create_ap 2014-09-18 01:54:27 +03:00
f589df0565 Using virtual interface names "ap*" 2014-09-17 16:52:37 +03:00
4516520cf2 Fix virtual drive auto-renaming
In some Linux distributions (e.g. Ubuntu, Debian), udev automatically renames any device with its name prefix is "eth*", "wlan*",... as declared in "/lib/udev/rules.d/75-persistent-net-generator.rules". This made a problem when creating a virtual device on these distributions declaring that device not found. Solution was to change virtual device's name prefix to "ap*" to avoid this collision.
2014-09-17 04:15:34 +03:00