-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Feature wireless ad hoc network mode #41
Conversation
Provide possibility to setup ad hoc wireless networks by providing arguments in the grisp.ini configuration file. The parameters are : - wlanmode : if set to "adhoc", the ifconfig command will be given adhoc mode as operation mode - adhocname : SSID of the ad hoc network - channel : the operating channel in the 2.4GHz band - ip_netmask : subnet mask for the assigned IP address
This reverts commit 6dacfbb.
This reverts commit 684f669.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation uses mixed tabs and spaces, please use 4 spaces and no tabs
I'm wondering if it would make sense to prefix the WLAN specific configuration attributes with |
@eproxus Thank you so much for taking the time to review the PR ! I will refactor the code to match the RCs and update ASAP. Regarding the |
Agree on the prefix |
The attributes now designate explicitly that they relate to a wireless setup. Occurrences of the "tab" character have been replaced by 4 spaces.
@Laymer sorry to be a bother, but could you revert the white space changes on lines which you haven't modified? That would make the diff much smaller and easier to review |
@eproxus Of course, it is no bother at all. I have just a quick question about the original file. Is it possible that there are tab indentation characters at some places in the |
@Laymer May well be. We've had problems of mixed tabs and spaces before and perhaps not everything is cleaned out. Sorry for the mess |
@eproxus No worries, I was just asking to make sure. I will push a quickfix in no time. |
@eproxus I have reverted all the whitespace changes I could spot, I hope it makes it easier to review the code itself. Please feel free to let me know if there are some additional changes I should make. |
@eproxus Glad if I can help ! Thank you for taking the time to review all. |
Why is there a |
@peerst I have tried to comply with the following :
But the original |
But wouldn’t they be set to the same name 100% of the uses? If I have a machine with multiple network interfaces it still has one hostname. Or is there a reason to have a different hostname from the wlan_hostname? Wouldn’t it make sense to just use the hostname for wlan? |
We had a offline discussion and decided to just use hostname for both since we couldn’t identify a use case for different hostname and wlan_hostname. Just another know that can be set wrongly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything fine, I think we should merge this
This feature needs documentation, either in the README or on the wiki. |
@eproxus This is something I will definitely work on, as it is a hard requirement for me to make it usable and configurable. Now that this PR is merged I could open another one for the docs and write down a wiki page for it if that is okay for GRiSP? 🙂 |
@Laymer Sounds good! |
EDIT : prefixes have been added
Provide possibility to setup ad hoc wireless networks by providing arguments in the
grisp.ini
configuration file. The parameters are :wlan_mode
: if set to "adhoc", the ifconfig command will be given adhoc mode as operation modewlan_adhocname
: SSID of the ad hoc networkwlan_channel
: the operating channel in the 2.4GHz bandwlan_ip_netmask
: subnet mask for the assigned IP addresswlan_ip_self
: assigned IP address used for wireless configurationswlan_hostname
: hostname used for wireless configurationsEDIT N°2
The standard
ip_self
andhostname
attributes have been left independent from thewlan_
-prefixed parameters, so that the standard configuration is identical and if a Pmod Ethernet module is added in the future, these attributes could be used for that purpose for example.