3

Is it possible to use only one wireless card to connect to other wifi network to access internet and share the internet to other devices via same wireless card at same time ?

No! I didn't mean hotspot since it means only sharing internet of other network card's (example, eth0) via wifi

I am doing two things at same time:

  1. connect to other wifi using wireless card wlan0
  2. share internet via same wireless card wlan0
Alex Jones
  • 6,223
  • 17
  • 51
  • 83
  • you mean hotspot? – Thushi Dec 16 '14 at 19:58
  • @Thushi no I didn't mean hotspot since it means only sharing internet via wifi – Alex Jones Dec 16 '14 at 20:02
  • How is that **not** a hotspot? – Celada Dec 16 '14 at 20:29
  • @Celada HotSpot just share other network card's (example, eth0) internet – Alex Jones Dec 16 '14 at 20:30
  • I don't think it matters where the upstream Internet connection is coming from, it's still a hotspot. Wikipedia says: "A hotspot is a site that offers Internet access over a wireless local area network (WLAN) through the use of a router connected to a link to an Internet service provider. Hotspots typically use Wi-Fi technology." – Celada Dec 16 '14 at 20:32
  • @Celada have you ever tried what I mean to say ? – Alex Jones Dec 16 '14 at 20:33
  • No, I haven't tried it, hence my answer is unable to give details (sorry), but there are some commercial product that do something similar. They are sold as "repeaters". – Celada Dec 16 '14 at 20:39
  • this helped me, found it on askubuntu http://askubuntu.com/questions/318973/how-do-i-create-a-wifi-hotspot-sharing-wireless-internet-connection-single-adap – Alex Jones Dec 28 '14 at 06:27

2 Answers2

1

I believe that some, but not all wifi chipsets will allow 2 subinterfaces, one of them in master mode and one of them in client mode.

The difficulty is that there is only one radio. The client subinterface needs to search for the SSID it wants to join and set the radio to the same channel as the access point it associates to. Master subinterfaces, on the other hand, are normally set to a fixed channel. You may have difficulty getting things configured so that the two subinterfaces don't step on each other's channel settings. The usual tools for configuring wifi interfaces probably won't help you with that task. Hardcoding the channel number all around seems the best option.

One way or the other, you'll be stuck with both subinterfaces on the same channel, which means you only have half the bandwidth available, because the same traffic has to go in and back out on the same radio frequencies.

Celada
  • 43,173
  • 5
  • 96
  • 105
  • Your question asks about using the same wifi card for both networks, hence that's what my answer is talking about, and hence the limitation of only one radio. If you have multiple wifi cards that it's a totally different question and it's much easier. – Celada Dec 16 '14 at 20:44
  • your answer is still vague. atleast mention any product or technical description of such card – Alex Jones Dec 16 '14 at 20:49
  • I'm sorry, I don't know vendors or models of cards that will work. Perhaps someone else with concrete experience will provide a better answer. – Celada Dec 16 '14 at 20:51
  • then from where you came to know ? haha – Alex Jones Dec 16 '14 at 20:53
  • From working with commercially available "repeaters" and half-remembered perusals through madwifi source code. – Celada Dec 16 '14 at 20:54
  • is this not possible by any way on computers ? one guy was claiming that he did it on his windows computer using connectify and wanted to know a method on ubuntu – Alex Jones Dec 16 '14 at 20:56
  • PLEASE! I already told you I don't have specifics on which chipsets support it and which don't. You are welcom to wait for someone to come along with a more detailed answer. I merely thought that sharing my knowledge of the inherent challenges involved might be useful to you. If you'd rather not hear it then let me know and I'll delete my answer. – Celada Dec 16 '14 at 21:00
  • Thanks for your useful answer, Celada. I'm speechless seeing how few credit you get trying to help some people on SE. – zopieux Dec 17 '14 at 16:57
0

Yes it is possible to share internet through same wireless card through which you are connect to some WIFI.

You have to check whether your wireless card supports this feature or not. Following links will help you to do so:

  1. Connectify for Linux with Single wireless interface
  2. How do I create a WiFi hotspot sharing wireless internet connection (single adapter)
Alex Jones
  • 6,223
  • 17
  • 51
  • 83