tgillett
We have a number of T95 Max boxes that we use as classroom Kolibri / Digital Library micro-servers.
The WiFi in these devices operates quite well as an Access Point.
I assume the T95 Mini boxes use the same WiFi subsystem.

The following is the process We use to set up the Access Point configuration.
In this configuration example the Access Point operates on Channel 11, with an IP address of 10.10.10.10, and allocates IP
addresses in this subnet to WiFi connected clients.
Clients can access the upstream network via the Ethernet connection.
It is also possible to plug in a suitable USB WiFi adapter (wlan1) and run it as a second AP for additional connections and throughput.

Installation

1. Install the Quadra software (or the alternate Armbian image provided by Inovato)

2. Connect the Ethernet port to a router with Internet access

3. From a terminal session, ensure that the device can ping an Internet address e.g. 1.1.1.1

4. Run the armbian-config utility:
 
$sudo armbian-config

    Select Network / Hotspot
     - Allow the Hotspot utility to run to completion.
     - Ignore warning messages about starting hostapd.
     - Select wlan0 when offered a list of interfaces (twice).
     - Exit the utility when it completes.

5. Configure dnsmasq
$ sudo cp /etc/dnsmasq.conf /etc/dnsmasq.conf.bak
$ sudo nano /etc/dnsmasq.conf

For the internal WiFi (wlan0, IP: 10.10.10.10):
interface=wlan0   # Use interface wlan0
listen-address=10.10.10.10   # Explicitly specify the address to listen on
bind-interfaces   # Bind to the interface to make sure we aren't sending things elsewhere
server=8.8.8.8   # Forward DNS requests to Google DNS
domain-needed   # Don't forward short names
bogus-priv   # Never forward addresses in the non-routed address spaces
dhcp-range=10.10.10.50,10.10.10.150,12h   # Assign IP addresses between 10.10.10.50 and 10.10.10.150 with a 12 hour lease time

6. Setup Access Point profile for internal WiFi (wlan0)

$ sudo nmtui

  Select Edit a connection / Add
  Select WiFi connection type.
  Enter parameters as below:
- Profile: My_Profile_Name
- Device: wlan0

- SSID: My_AP_SSID
- Mode: Access Point
- Security: WPA & WPA2
- Channel: B/G 2.4GHz   11     (For Chan 11)
- Password: My_AP_Password

- IP4 Configuration: Shared     (Shares Internet connection with clients. Otherwise use Manual)
- Adresses: 10.10.10.10/24
* Note: Leave Gateway address field empty.

- IP6 Configuration: Ignore

- Automatically Connect (checked)
- Available to all users (checked)


7. Restart Networking
$ sudo systemctl restart NetworkManager.service


8. Check the AP operation with:

$ sudo iw dev
$sudo ip a
jordana
I have a T95 mini but hostapd fails to start on it even with this configuration. Anybody else tried on T95 mini please?
Reply 0 0
tgillett
I don't have a T95 Mini to test with, but my understanding is that the wifi is the same as in the T95 Max.
Certainly the Quadra code runs fine on the T95 Max wifi.

But there are lots of variations in the hardware supplied...
Is your T95 Mini device a Quadra unit or purchased elsewhere?

One thing to check is that the wifi can actually support AP operation.
Run "sudo iw list" command and look for "Supported interface modes".

You should see a list including:
IBSS
managed
AP
AP/VLAN
monitor
mesh point
P2P-client
P2P-GO

This is the list from T95 Max.
Reply 1 0
jordana
Thank you @tgillett for your reply!
I live in the UK and have this unit with flashed Quadra image:
https://amzn.eu/d/g5ej3SF

quadra@inovato:~$ dmesg
...
[    7.136753] xradio: XR819 device discovered
[    7.163618] xradio_wlan mmc1:0001:1: no mac address provided, using random
[    7.399487] xradio: hardware vers. 7.9
[    7.399510] xradio: firmware vers. 8 (WSM), build 5258, api 1060, cap 0x0003
[    7.399517] xradio: Config USE_EXTENSIONS


I have the same supported inteface list that you list.

For some reason I lost Hotspot menu from armbian-config so I might have corrupted the disk somehow. I plan to reflash but the unit is remote at the moment so it will take some time for me to get hold of it again...
Reply 0 0
tgillett
@jordana
It certainly looks like you have the right hardware.

My dmesg output is similar:

$ dmesg | grep radio
[ 72.874551] xradio: XR819 device discovered
[ 72.874964] xradio_wlan mmc1:0001:1: no mac address provided, using random
[ 73.110802] xradio: hardware vers. 7.9
[ 73.110821] xradio: firmware vers. 8 (WSM), build 5258, api 1060, cap 0x0003
[ 73.110828] xradio: Config USE_EXTENSIONS
[ 84.163427] xradio AP-WRN: ap restarting!

But it runs much later at 72 seconds, which might be a hint.
There is the ap restart at 84.

There are some wlan0 entries as well:

[ 73.384281] systemd[1]: Found device /sys/subsystem/net/devices/wlan0.
[ 73.387965] systemd[1]: Started ifup for wlan0.
[ 84.195688] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

The fact that the Hotspot menu has disappeared is a bit odd.
I suspect something has gone awry and reflash is probably your best path to recovery.

It is not entirely clear to me exactly what the Hotspot menu item setup is doing, and it throws a few warnings along the way.
I originally@jordana set up the wifi AP from scratch using NetworkManager and it mostly worked but I couldn't quite get everything I needed, so I went with the Hotspot menu to get the basics in place, then modified the config with nmtui and the dnsmasq config file.

If you get stuck, I can give you a link to our working image to download and try. That might help.
It is set up to run the internal wifi as an AP, and also an optional USB wifi dongle as a second or alternate AP.








 
Reply 1 0
jordana
thank you for your nice offer @tgillett - I will consider it when I will have the unit at my hand which might be a month or so away
Reply 0 0
jordana
Today I got T95 mini at my hand finally and I could make access point working without armbian-config.
 
To start from a clean sheet I reflashed the unit from SD card and updated it via wired Ethernet.
 
Then I configured network manager as follows:
 
quadra@inovato:~$ sudo nmtui
Edit a connection
Wi-Fi
 maplewood
<Edit...>
SSID XR819
Mode <Access Point>
Channel <B/G (2.4 GHz)> 1
Password ********************
IPv4 CONFIGURATION <Shared>
<Show>
Addresses 172.24.1.1/24
[X] Available to all users
<OK>
<Back>
Quit
quadra@inovato:~$ sudo systemctl restart NetworkManager.service
 
Then I installed and configured dnsmasq as follows:
 
quadra@inovato:~$ sudo apt install dnsmasq
quadra@inovato:~$ sudo nano /etc/dnsmasq.conf
server=8.8.8.8
interface=wlan0
dhcp-range=172.24.1.2,172.24.1.5,12h
quadra@inovato:~$ sudo systemctl restart dnsmasq.service
 
After this wifi clients could connect to the Internet via the access point.
Reply 0 0
Reply