Skip to content

Add Linux iwconfig #2122

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

evilmonkey19
Copy link
Contributor

New template.

@mjbear mjbear changed the title Adding new template for Linux: iwconfig Add Linux iwconfig May 5, 2025
@mjbear mjbear added the question label May 5, 2025
mjbear added 2 commits May 8, 2025 20:33
Further define the recording regex beginning with "wl" so it is
less likely to inadvertently match other text.

Examples it will match:

- wlan0
- wlp3s0
^\s*${INTERFACE}\s+no\s*wireless\s*extensions\.$$ -> Clear
^\s*${INTERFACE}\s+(IEEE\s+802\.11\w*|unassociated)(?:\s+ESSID:off\/any)?(?:\s+Nickname:\"${NICKNAME}\")?\s*$$
^\s*${INTERFACE}\s+(IEEE\s+802\.11\w*|unassociated)(?:\s+ESSID:\"${ESSID}\"\s+)?(?:\s*Nickname:\"${NICKNAME}\")?\s*$$
^\s*${INTERFACE}\s+IEEE\s+802\.11\s+Mode:\s*${MODE}\s*Frequency:\s*${FREQUENCY}\s+Tx-Power=${TX_POWER}\s*$$
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evilmonkey19 Would you be able to provide test data that covers this 802.11 Mode: regex?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evilmonkey19 Would you be able to provide test data that covers this 802.11 Mode: regex?

Hello @evilmonkey19, by chance did you see this question?

Thank you!

Comment on lines +30 to +31
wlan3 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=5.18 GHz Access Point: Not-Associated
Copy link
Collaborator

@mjbear mjbear May 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Frequency=5.18 GHz

Was this equal sign = instead of colon : an accidental modification?
(None of the other frequency labels are like this.)

mjbear added 2 commits May 8, 2025 21:04
Swap \s+ for \s* where there is at least one space.
Doing so for flexibility reasons.
Since none of the labels have a space before the colon it doesn't
seem necessary to have the extra characters.
eth0 no wireless extensions.

wlan0 IEEE 802.11 ESSID:"My_home"
Mode:Managed Frequency:5.18 GHz Access Point: AA:AA:AA:AA:AA:AA
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only "label" that has a space after the colon (or equal sign) separator is Access Point.

  1. Do we have test data that supports the existence of spaces after the colon/equals?

  2. Should we remove some of those fluff whitespace regexes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants