LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-19-2015, 03:21 PM   #1
gearheadgeek
Member
 
Registered: Aug 2007
Posts: 30

Rep: Reputation: 0
wireless access point help?


I've been using Slack in product for a long time but this new request has me stumped. They say we need to talk to the remote devices (an LED array display and green/red/yellow light stack) by wireless to become more modern. The hardware guy uses a TI 430 in the peripherals so uses a Lantronix module that has a built in TCP stack since the 430 is bare metal - no OS. I figured we could use ad hoc or peer to peer, but he says the Lantronix device takes an unacceptably long time to connect in that case. So I am supposed to act as an "access point" except my app will be the one talking to the peripherals, not just forwarding packets from a wireless net to a wired one. Two days of surfing has left me confused. Do I need wpa_supplicant and hostapd together? Just hostapd? Or wpa_supplicant has an AP mode? Some use bridges, some don't. It seems to me like forwarding should work without a bridge. Do I need to use NAT although the host and peripherals will be on a common subnet? I probably need iptables to keep wireless packets from spilling onto the wired network. What do I do? Route wireless packets to lo where my app can get/put them? Can I get/put packets to eth0 even if there is no cable connected? Or am I over thinking this? Will wlan0 be available to me running hostapd or wpa_supplicant in AP mode? Help!!

Last edited by gearheadgeek; 08-19-2015 at 03:23 PM.
 
Old 08-19-2015, 04:17 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
I set up hostapd on Slackware earlier this year, so perhaps some of this thread will help.
 
Old 08-20-2015, 01:47 AM   #3
longus
Member
 
Registered: Dec 2008
Posts: 49

Rep: Reputation: 3
Some time ago Alan Cox pointed me to this page: https://wiki.archlinux.org/index.php...e_access_point

I use create_ap and haveget. The only difference with the article in my case is the way to handle NetworkManager to temporary free the NIC. Do not edit any NetworkManager conf file.

#nmcli nm wifi off
#rfkill unblock wlan
#sleep 5
#create_ap ...

Since my laptop has a hardware button for WiFi, there is no need then to use something like
"#nmcli nm wifi on" afterthat.
 
Old 08-20-2015, 02:32 PM   #4
gearheadgeek
Member
 
Registered: Aug 2007
Posts: 30

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allend View Post
I set up hostapd on Slackware earlier this year, so perhaps some of this thread will help.
Thanks. I had seen that one.
 
Old 08-20-2015, 03:28 PM   #5
gearheadgeek
Member
 
Registered: Aug 2007
Posts: 30

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by longus View Post
Some time ago Alan Cox pointed me to this page: https://wiki.archlinux.org/index.php...e_access_point

I use create_ap and haveget. The only difference with the article in my case is the way to handle NetworkManager to temporary free the NIC. Do not edit any NetworkManager conf file.
I can't really use NetworkManager or WICD as this box is headless running without X. It is essentially an embedded device. I looked at create_ap, but it is too opaque. I need to understand what is going on. I found this http://www.ibm.com/developerworks/li...ncrypthostapd/ which cleared up some things. But the powers-that-be decided that since we have to buy a USB wifi dongle anyway, maybe we should just use an external AP.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get my wireless modem to work as an access point for wireless devices? Mac_09 Linux - Networking 5 07-13-2008 12:51 AM
Wireless router to wireless access point J3N7iL Linux - Wireless Networking 2 09-29-2005 08:55 PM
Wireless Router vs Wireless Access Point IBall Linux - Wireless Networking 2 02-01-2005 12:29 PM
Which is the best Wireless Access Point and Wireless Card? hamish Linux - Wireless Networking 13 05-04-2004 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration