[WLANtalk] Freifunk mit TDMA?

Martin Tippmann martin.tippmann at gmail.com
Di Jul 14 18:37:49 CEST 2015


2015-07-14 13:29 GMT+02:00 Valent Turkovic <valent at otvorenamreza.org>:
> Hi,

Hi,

> it seams that Russian company called NETSHe has created TDMA driver
> and they base their firmware upon OpenWrt.
> It looks like this is close guarded secret or just nobody noticed them
> so far because they have developing this driver for over 5 years.

> They won't open source their code but have flexible licencing model.
> If their TDMA driver performs ok we could get Batman, OLSR or Babel
> working on Ubiquiti devices this way and still have TDMA for PtMP
> links!

A quick look into their images suggests that they modify GPL kernel
and userspace code and should maybe be obliged to provide modified
sources. Not sure if this is the case but I think iw and mac80211 as
well as ath9k are GPL? It looks like there are no sources around...

If someone wants to take a deeper look:

You can extract the image with binwalk -e <img> and unsquashfs...

I just did a grep -ri tdma and got the following results:

Übereinstimmungen in Binärdatei ./usr/lib/libpcore.so.4.0.0.
Übereinstimmungen in Binärdatei ./usr/sbin/iw.
Übereinstimmungen in Binärdatei ./lib/modules/3.8.6/mac80211.ko.
Übereinstimmungen in Binärdatei ./lib/modules/3.8.6/pdwext.ko.
Übereinstimmungen in Binärdatei ./lib/modules/3.8.6/cfg80211.ko.
Übereinstimmungen in Binärdatei ./lib/modules/3.8.6/ath.ko.
Übereinstimmungen in Binärdatei ./lib/modules/3.8.6/pnwext.ko.

[~/tdma/squashfs-root]$ strings ./usr/sbin/iw | grep -i tdma
tdma
TDMA
join_tdma
leave_tdma
Join the TDMA network with the given frequency, version, slots, bitrate and keys
Leave the current TDMA network.


[~/tdma/squashfs-root]$ strings ./lib/modules/3.8.6/cfg80211.ko | grep -i tdma
/home/stanislav/stasoft/NETSHe-SDK-4/barrier_breaker/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/compat-wireless-2014-05-22/net/wireless/cfg80211_tdma.c
[~/tdma/squashfs-root]$ strings ./lib/modules/3.8.6/mac80211.ko | grep
-i tdma
TDMA: It is the first node. Start with node_id (%d)
TDMA: Try to associate with node_id (%d) and node_bitmap (%04X)
TDMA: No neighbours or beacons in ASSOCIATING state. Reset state to UNKNOW
TDMA: All neighbours accept this node settings. Change state to ASSOCIATED
TDMA: Not all neighbours voted for this node.
TDMA: (%lu) All neighbours do'nt see node / or beaconing troubles.
Reset node. (LV %lu / LB %lu / TC %lu / NB %d)
TDMA: Could not allocate memory for beacon!
TDMA: Could not put beacon header into skb!
TDMA: Could not put ESSID into skb!
TDMA: Could not put basic rates into skb!
TDMA: Could not put ext rates into skb!
TDMA: Could not put HT capabilities into skb!
TDMA: Could not allocate beacon
TDMA: Could not put TDMA info into skb!
TDMA: Could not put peer info into skb!
6%s: Failed to join TDMA network, DFS for specified channel is required
TDMA: Something wrong
TDMA: Start network join with %d nodes and %d version
TDMA: Setuped bitrate - %d. Calced - %d. Supported Rates - %x
TDMA: Round duration - %lu, TX slot duration - %lu, Second TX slot
duration - %lu
TDMA: Beacon interval in TU - %d.
TDMA: stop is called
TDMA: leave is called
TDMA: Enable frame transmission
TDMA: Wrong beacon len - %d
TDMA: Different SSID
TDMA: Wrong ie len - %d
TDMA: Wrong IE - %d
TDMA: Wrong version - %d %d
TDMA: Wrong node_id
TDMA: Rate mismatch
TDMA: Uh-Oh! Beacon with the same ID received.
TDMA: Desynchronize this node
TDMA: Just ignore it.
6%s: No room for a new TDMA STA entry %pM
TDMA: Could not link the key
TDMA: Could not allocate key
TDMA: Round duration - %lu, TX slot duration - %lu, Second TX slot
duration - %lu
TDMA: Neighbour with node_id (%d) is voted for this node.
TDMA: Disable frame transmission after beacon precessing
TDMA: USC - %u
TDMA: Reset starts Intf Queue %d
TDMA: Reset starts IEEE80211 Queue %d
tdma_originator_expire
tdma_max_clock_drift
tdma_get_skb_from_queue
tdma_sta_init
tdma_get_avail_slot
tdma_get_tx_window
tdma_originator_update
tdma_calc_ideal_interval
tdma_process_pending_frames
tdma_store_pending_frame
ieee80211_tdma_tx_notify
tdma_process_hdr
tdma_plan_next_tx
tdma_update_skb_hdr
tdma_tx_slot_duration
tdma_sched_tx
tdma_originator_get
tdma_amsdu_to_8023s
tdma_tu_adjust
tdma_update_hdr_counter
tdma_tx_slot_calc


Mehr Informationen über die Mailingliste WLANtalk