Skip to content
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

FS#1787 - iw doesn't support wep with ibss adhoc #6744

Open
openwrt-bot opened this issue Aug 16, 2018 · 2 comments
Open

FS#1787 - iw doesn't support wep with ibss adhoc #6744

openwrt-bot opened this issue Aug 16, 2018 · 2 comments
Labels

Comments

@openwrt-bot
Copy link

jsantala:

VoCore2 / OpenWrt SNAPSHOT, r7866-8c91807

Works:

iw phy phy0 interface add f00 type ibss

ip link set up f00

iw dev f00 ibss join foobar 2412

root@tolppaB8D812x67_27402:~# iwinfo f00 info
f00 ESSID: "foobar"
Access Point: B8:D8:12:67:6B:0A
Mode: Ad-Hoc Channel: 1 (2.412 GHz)
Tx-Power: 0 dBm Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: unknown
Type: nl80211 HW Mode(s): 802.11bgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0

Does NOT work:

iw dev f00 ibss join foobar 2412 key d:0:42325d294a

Usage: iw [options] dev ibss join [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [fixed-freq] [] [beacon-interval ] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate ] [key d:0:abcde]

Join the IBSS cell with the given SSID, if it doesn't exist create
it on the given frequency. When fixed frequency is requested, don't
join/create a cell on a different frequency. When a fixed BSSID is
requested use that BSSID and do not adopt another cell's BSSID even
if it has higher TSF and the same SSID. If an IBSS is created, create
it with the specified basic-rates, multicast-rate and beacon-interval.

Options:
--debug enable netlink debugging

@openwrt-bot
Copy link
Author

jsantala:

Same thing happens with built-in and external wifi. It's like the command doesn't have the option although the help clearly defines it and the very same command which works on another Linux does not work in OpenWRT. This also causes the IBSS setup to fail if I try to configure it via UCI.

@openwrt-bot
Copy link
Author

jpt:

I bumped in the same issue.

AFAIKT this is by design; in the OpenWRT build system, the iw command is patched to remove support for WEP keys.

The reason is probably:

  1. WEP keys are obsolete and ill-advised;
  2. one goal of OpenWRT is short memory footprint, hence the removal.

removing the patch seems to fix the problem -- but it is still unadvisable to use wep keys.

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

No branches or pull requests

1 participant