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
5
votes
1 answer

Getting WIFI signal strength- seeking the best way (IOCTL, iwlist (iw) etc.)

I want to scan the signal strength received from 3 AP. I would be happy if that could happen every 300ms (max.500ms). I flashed OpenWRT on the routers. I was seeking for a good tool to do that. First I found iwconfig which worked, but only with…
user3673464
  • 59
  • 1
  • 1
  • 4
5
votes
1 answer

linux: How to get wireless ssid without root permission?

Is there any way to get current wireless SSID without root permission? iwconfig tells me ESSID, but only if I run it as root.
npcode
  • 1,370
  • 1
  • 14
  • 29
4
votes
1 answer

iwconfig - /proc/net/wireless does not exist

I am trying to use iwconfig to get info about wlan0. When I try I get: wlan0 no wireless extensions. ifconfig seems to printout normally (includes an ip address for the connection). The machine appears to have Wireless Extensions v22 installed,…
Austin
  • 318
  • 1
  • 3
  • 16
3
votes
1 answer

libnl/nl80211 equivalent of iw_set_ext

I started writing a code to handle wifi card using iwconfig/ioctl when I realised that it is depricated and most of applications uses nl80211. I started reading its source code but there is no docs and code is a bit complicated. How can I do simple…
Mateusz
  • 604
  • 8
  • 20
3
votes
2 answers

Android: connect to Wifi using terminal

On Windows I can connect to a specific Wifi using: netsh wlan connect ssid=SSID1 The command iwconfig doesn't work on Android. The command svc wifi enable just turns the Wifi on. Is there a terminal command for Android that connect to a specific…
bodruk
  • 3,242
  • 8
  • 34
  • 52
2
votes
1 answer

iwconfig unavailable to processes started with crontab @reboot?

this is my first post to stackoverflow, so please bear with me :) I'm trying to read the output of iwconfig from a python script to determine whether there is a wifi connection. When I run script (via a bash script that first sets the directory)…
Beat
  • 70
  • 5
2
votes
1 answer

how to connect to wifi that has a encryption key, in terminal

I can connect to wifi sudo ifconfig wlan0 up sudo iwconfig wlan0 essid sudo dhclient wlan0 but I don't know how to connect to encrypted wlan so please tell me how to do that, if a wifi password is "abcdef" Thank you.
potato
  • 23
  • 6
2
votes
0 answers

Install iw for AR Drone

I am involved in a project using a Parrot AR Drone 1.0 that I would like to attach an USB dongle to act as a mesh node. But for that I need to install a software called iw, which is like an improvement of iwconfig, I am following the instructions of…
1
vote
1 answer

iwconfig grep output as part of a script

#!/bin/bash MAX=20 while true do iwconfig wlan0 txpower $(((RANDOM % $MAX) +1)) set -x #this was not originally included echo iwconfig wlan0 | grep Tx-Power done So I am trying to have a small script vary the tx power of my device below the max. I…
1
vote
1 answer

Reduce wifi range to 2-3 metre

I want to keep two wifi routers in a room in such a way that a WiFi station does not see both the Access Points at the same time. My idea is to reduce the transmit power of the AP so that the WiFi range becomes around 2-3 metres. Is this…
Kiran
  • 119
  • 1
  • 9
1
vote
0 answers

php shell_exec iwgetid ignores quotes

I am trying to get the SSID from a Linux machine with PHP, but with shell_exec values between quotes seem to be ignored. In the cli the result of iwgetid is: wlan0 ESSID:"test" However if I do the same with PHP using shell_exec: $ssidInfo =…
1
vote
0 answers

How to connect with iwconfig using ASCII passphrase

I'm trying to connect to a network with an ASCII passphrase of 9 characters. I give the network key as iwconfig eth1 key s:abcdefghi iwconfig eth1 essid "My Network" It gives an error as: AP(BSS) finding:Found a AP(BSS).. 802.11 Authen (OPEN)…
yildizabdullah
  • 1,895
  • 5
  • 24
  • 37
1
vote
1 answer

ioctl IOCGIWSCAN : invalid arguments,

Hi everybody i'm trying to get information so does iwlist command. I got a invalid arguments errno, and I don't understand why, I'm fellowing a good paper with deals about that : ioctl & iwreq . My code is the fellowing : #include…
deadeert
  • 41
  • 4
1
vote
2 answers

Getting iwconfig output in fields

I just did an iwconfig 2>/dev/null | hd and an echo $(iwconfig 2>/dev/null) | hd Both outputs have no clear separation between fields and inner-field spaces… it's all spaces -.^ The man-page didnt bring up any way to set iwconfig's field-separator,…
rhavin
  • 1,512
  • 1
  • 12
  • 33
1
vote
1 answer

parsing ssid with iwconfig in c

I am about building a bar for DWM (ubuntu linux), showing wifi details such as the ssid. Thats my code: #include #include int main( int argc, char *argv[] ) { FILE *fp; int status; char path[1035]; /* Open the…
Fabian
  • 748
  • 2
  • 11
  • 20
1
2 3