Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I have a ARM Linux based cell phone with an Atheros AR6000 wifi chipset inside. I want to use it to share my internet connection, but never mind about that. Does anyone know if it's possible to either create an Access Point or create an Ad-Hoc connection so I can connect to it with my laptop? If so, how? I looked up iwconfig, trying 'iwconfig wlan0 mode Master essid "Access_Point"', but that didn't work. I don't mind recompiling the kernel or drivers, just tell me if it's possible at all. Thanks!
Hi, I recently made an AP from an atheros chip using the ath9k driver (check support for your chip). This driver, using the new wireless stack, doesn't support Master mode directly, but through hostapd. Hostapd comes with a pretty well documented *.conf file, so it's not too hard to set up.
Thanks, I tried hostapd (cross-compiled for ARM), and it gave me errors about writing to ioctl (I'm root). My chip is AR6002, how do I check compatibility?
I looked at my current ath6k driver, and it looks like it supports both AP and iBSS mode. If I use 'iwconfig wlan0 mode Ad-Hoc essid TEST channel 8', and then 'iwconfig', nothing changes. What's the correct way of creating an ad-hoc network with iwconfig?
(only partial output) I haven't yet figured out how the phy0 part selects its number, the first driver loaded gets 0, the second 1... I have never used more than one argument at a time with iwconfig. As such, I'd do 3 commands where you do one (not sure it makes a difference, can't hurt to try) :
Quote:
#iwconfig wlan0 mod Ad-hoc
#iwconfig wlan0 channel 8
#iwconfig wlan0 essid test
This way you can also see which step went wrong (if any does). Then try to set an IP address using ifconfig.
Ok, so I managed to create an Ad-Hoc access point. Now how do I share my internet connection? Do I need dhcp-server if I want to assign ip?
I connected to the ad-hoc network "test" created by my cell phone. On the phone, I sat wlan0 with a static ip of 192.168.1.2. On my PC, I connected and sat a static ip of 192.168.1.3. However, from my computer, I can't ping 192.168.1.2.
check your phone's firewall settings. Try disabling the firewall on the computer, and pinging it from the phone. To shar your internet connection, you'll have to set up routing using the "route" command (or installing a DNS server) and Network Address Translation (firewall : iptables?).
Thanks, it works now. problem was that I needed to set gateway to 0.0.0.0 (don't know why). Last problem: the software on the phone no longer have access to the wifi. I want to manually start and stop broadcasting to save battery. What's the best iwconfig command to control broadcasting on/off/power level? I see iwconfig wlan0 power xxx and txpower. But I don't know how to use it. I want to be able to: 1) turn transmission on/off and 2) control how powerful the transmission is
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.