Questions tagged [iwconfig]

iwconfig is a tool used to configure wireless network interfaces on Linux systems. Make sure that your question is not better suited for Super User (superuser.com).

iwconfig is a tool used to configure wireless network interfaces on Linux systems.

Questions about using iwconfig to configure wireless networking are generally considered off-topic on Stack Overflow; these questions are better suited for Super User. Appropriate questions about iwconfig on Stack Overflow will typically involve the development of this tool, or of tools that interact with it.

38 questions
1
vote
1 answer

[Android]Determine the transmit power of a wifi tethered device without rooting the phone

I need to determine the transmit power value of a a tethered wifi network in ad-hoc mode. The current wifi tether applications in Android are mainly using iwconfig to configure the tethering which is an unofficial API. Using this API it is…
insyncim64
  • 125
  • 1
  • 8
0
votes
0 answers

Trying to connect to a wifi network with a list of simple passwords with python

I have writen a script in python to attempt to connect to a defined wifi network with a list of simple passwords. import wifimangement_linux as wifi import os wifiname = input("Enter Wifi SSID: ") print("Wifi not stored, testing…
asive
  • 1
  • 1
0
votes
0 answers

Can't regain static ip after losing connection

I'm using the networking module to control my network over ubuntu 16, with this wifi driver: https://github.com/morrownr/88x2bu-20210702 I configured static IP using the /etc/network/interfaces file. The computer is installed on a moving robot so…
dorforer
  • 71
  • 1
  • 4
0
votes
0 answers

Unable to pass string from read_line to Command arg

I have the following rust routine which executes fine: use std::process::Command; fn main() { let out = Command::new("iwconfig") .arg("wlan0") .output() .expect("Failed to execute 'iwconfig'"); println!("status:\n…
チーズパン
  • 2,752
  • 8
  • 42
  • 63
0
votes
1 answer

How to connect my device to wifi with libnl?

I'm creating a C library that manage a lot of pheripherical of my embedded device. The S.O. used, is a linux dristro compiled with yocto. I'm trying to make some functions to connect my device to a wifi (well-know) router, with netlink (using the…
Sguit
  • 35
  • 1
  • 8
0
votes
0 answers

Is there a way to use os.system in a for?

I've made a bash script which aims to print information like IP, MAC address, signal strength and device name about a device when it's connected to a hotspot. I want to use python instead so I'm rewriting it. When I execute the code it only prints…
Alvaromr7
  • 25
  • 8
0
votes
1 answer

configure network device with wireless extensions

I need to configure a network device in C on a linux host for an application. I read up on netlink, libnl and nl80211 which goes through cfg80211 and mac80211. I found out later that the driver for the device I am using does not support the mac80211…
user3258845
  • 111
  • 5
0
votes
0 answers

Name not unique on network error while adding virtual interface

I am trying to add an virtual interface type AP for my TP-Link TL-WN722N on Ubuntu 16.04 LTS. Below is the command I used vinay245@vinay245:~$sudo iw dev wlx60e327078eed interface add wlan0_ap type __ap There are no issues which creating this I…
Vinay KS
  • 35
  • 1
  • 11
0
votes
1 answer

wpa_supplicant / wpa_cli not able to detect wrong key of access point

I am developing a handheld device based on IMX233 running embedded linux and is using Unifi CSR6026 for connecting to the WiFi networks. I have got the basic WiFi connectivity running using the wpa_supplicant and wpa_cli utilities. But i'm not able…
androidFan
  • 611
  • 2
  • 19
  • 31
0
votes
1 answer

Linux -OpenWrt- (Unwired One) python wlan interface scan error

The thing I am trying to achive, I want my android app to get a list of all available wlan connections within the range of a device with a wlan (at that point the device is an access point). Then I want to tell that device to which network to…
rimes
  • 761
  • 1
  • 8
  • 25
0
votes
3 answers

Storing printed data into variables

I have this code below that prints out the Link Quality & Signal Level of WiFi connection. I'm trying to store the data retrieved into a variables so I could process further but I'm stuck having no idea how to do so. while True: cmd =…
0
votes
1 answer

Transposing multiple lines of data into one table in Python

I have an output file from a script that parses iwlist scan that looks something like: Cell: 01 - Address: XX:XX:XX:XX:XX ESSID: "My Network Name" Frequency: 2.412 GHz (Channel 2) Quality: =XX/100 Signal Level: XX/100 Cell: 02 - Address: ESSID:…
sjo91190
  • 69
  • 6
0
votes
1 answer

subprocess.check_output() not providing full iwconfig output

I am trying to make a python program to display information about the WiFi connection, but I have hit a snag. subprocess.check_output() is not working the way I need it to. >>>import subprocess >>>test = subprocess.check_output("iwconfig") Provides…
Ben Durham
  • 92
  • 9
0
votes
1 answer

How to get iwconfig to display signal level as dbm instead of a fraction

When I run: iwconfig wlan0 | grep -i quality on my Raspberry Pi, with a wifi card installed, it reports back to me with: Link Quality=99/100 Signal level=48/100 Noise level=0/100 How can I get iwconfig or some other network tool to report the…
0
votes
1 answer

Wireless wlan0 management

I implemented a function in order to connect my device to an access point which contains : iw mlan0 connect $SSID udhcpc -i mlan0 while : ; do echo "Pausing until connection established" mlan0_ip=`/sbin/ifconfig mlan0 | grep 'inet addr:' |…
ogs
  • 1,139
  • 8
  • 19
  • 42