-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have fun!
- Loading branch information
0 parents
commit 0a49df3
Showing
5 changed files
with
467 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.o | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.