Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
Have fun!
  • Loading branch information
kohlschuetter committed Nov 27, 2017
0 parents commit 0a49df3
Show file tree
Hide file tree
Showing 5 changed files with 467 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.o
*~
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
SYSROOT = /opt/android/sysroot
CROSS_COMPILE = /opt/android/arm-eabi-4.6/bin/arm-eabi-

INCLUDE = -I./src -I $(SYSROOT)/usr/include

CFLAGS = -g -O2 $(INCLUDE) -fpic -fno-short-enums -Wall
LDFLAGS = -L/opt/android/sysroot/usr/lib -pie -nostdlib -rpath /system/lib -lc --dynamic-linker /system/bin/linker \
-x --strip-debug

CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld

TARGET = maxassoc

SOURCES = \
src/*.c \

OBJECTS = $(shell echo $(SOURCES) | sed -e 's|\.c|\.o|g')

all: $(TARGET)

$(TARGET): $(OBJECTS)
$(LD) $(LDFLAGS) -o $@ $^

$(OBJECTS): $(SOURCES)
$(CC) $(CFLAGS) -c -o $@ $<

clean:
rm -f $(TARGET) $(OBJECTS)

31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# maxassoc

A little program to override the maximum number of stations that can associate with an Android phone when tethering (sharing the data connection over WiFi).

## Limitations

This is pretty much a working hack at this point.
The maximum number of stations is hard-coded to 32.

## Supported Devices

Currently, only Broadcom chipsets are supported (and not all of them will work).

Tested working on:

* Sony Xperia Z2 running Android 4.4

## Installation

Modify the Makefile to point to the right cross-compiler and Android sources.

## License

maxassoc

Copyright (c) 2017 Christian Kohlschütter

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
Loading

0 comments on commit 0a49df3

Please sign in to comment.