-
Notifications
You must be signed in to change notification settings - Fork 137
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
[wifi] "Link Quality" field is missing unless "sudo" #82
Comments
@lihebi - is this on MacOS? I'm running with the
and edit |
Option 3. Use Something along the lines of 9369f5b but in this case it probably wouldn't be a need for interactive handling of the condition as the causes for the module failing are too many. |
Thanks for the help, Ram.
While
I believe this is a root privilege issue. I tried your suggestion for setting |
@lihebi - ah, I think this may help: |
Here we go, this works, thanks! |
Hi, I encounter some exceptions even if I added sudo privilege. Sometimes (on my archlinux machine), sudo iwconfig still miss "Link Quality" section. Instead of just printing multiple line "The value NIL is not of type VECTOR" in the mode line, it might be better to just give user options to retrieve link quality or not. For me, I don't think the link quality is important, but I really need to know whether I connected to the right wifi. I propose two ways:
|
When I enable wifi in mode-line by "%I", I got "The value NIL is not of type VECTOR" in the mode line.
Diving into the code, I found the following code cause the bug:
The cause is
iwconfig
does not report "Link Quality" unless run as root.I'm using a macbook, thus not sure if this is the case for other hardware, but I guess so. The fix might be:
Option 1. remove the Link Quality
Option 2. run the command
iwconfig
in root priviliageThe text was updated successfully, but these errors were encountered: