aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
5 daysupdate to new rfkill.hHEADmasterJohannes Berg2-15/+81
Already a long time ago, we had to change the scheme in the kernel due to actual backward compatibility issues. Adjust the code here accordingly. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-02-12bump version to 1.0v1.0Johannes Berg1-1/+1
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-02-12rfkill: support hard block reason in C codeMarkus Theil1-2/+13
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-02-12rfkill.c: deal with updated struct sizeMarkus Theil1-2/+4
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-02-12rfkill: update rfkill.hMarkus Theil1-1/+17
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-01-21rfkill: support hard block reason in python codeMarkus Theil1-11/+39
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-01-21rfkill.py: migrate to python3Markus Theil1-11/+12
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-01-21rfkill.py: explicitly set buffering=0Johannes Berg1-5/+5
This fixes an issue with newer kernel versions - we had always documented the kernel API has being able to extend the struct size, but using buffering in python makes that impossible. Fix this by not using buffering. This really only matters on read, but set it on write for consistency as well.
2015-01-08add python moduleJohannes Berg1-0/+150
2015-01-08use uapi rfkill.hJohannes Berg1-289/+6
2013-05-03version 0.5v0.5Johannes Berg1-1/+1
now with nfc support
2013-05-03fix compiler warningJohannes Berg1-3/+2
2013-05-03Add NFC supportSamuel Ortiz3-1/+6
rfkill.h is synced with the kernel header, man page is updated and RFKILL_TYPE_NFC is mapped to "nfc".
2010-02-06version 0.4v0.4Johannes Berg1-1/+1
2010-01-26Add rfkill type "fm" to the man page.Darren Salt1-1/+1
2010-01-26Help text: output rfkill type names from an array instead of a static string.Darren Salt1-1/+6
2010-01-26Tweak version handling to allow vendor-specific suffixes without patching.Darren Salt2-1/+14
This overrides the "git describe" suffix for when the packaging is in git.
2010-01-23change manpage for new rfkill list behaviourJohannes Berg1-2/+3
2010-01-23Add filtering to "rfkill list".Darren Salt1-3/+31
2010-01-23Refactor rfkill index/type lookup: move it below rfkill_block.Darren Salt1-57/+73
2010-01-23Return error codes instead of exiting.Darren Salt1-16/+16
2010-01-23Constification.Darren Salt1-5/+5
2010-01-23Rearrange the help text for block & unblock.Darren Salt1-4/+4
2010-01-23Add "wlan" and "ultrawideband" as aliases for "wifi" and "uwb".Darren Salt2-2/+5
I tend to think "wlan" rather than "wifi"; also, it fits in nicely with "wwan". Also, these aliases are what the kernel uses.
2010-01-19update rfkill.h from kernel 2.6.33Tomas Winkler2-0/+6
1. add FM radio type 2. update rfkill_type docs Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
2009-12-04Move the man page to section 8Darren Salt2-5/+5
2009-12-03print time instead of useless textJohannes Berg1-3/+6
2009-10-29flush output after eventsJohannes Berg1-0/+1
suggested by Martin Dubuc who wants to log it to file
2009-09-30default install to $(PREFIX)/sbinJohn W. Linville1-3/+3
The rfkill utility isn't generally useful to normal users, so move it to /sbin with other system management executables. Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-09-02version 0.3v0.3Johannes Berg1-1/+1
license clarifications
2009-09-02resync rfkill.h with kernelJohannes Berg1-13/+10
The kernel rfkill.h got a new license thanks to all people involved with it -- we can now sync with it and clean up the little license mess here. The upstream (kernel) commit was: commit 8bc11b491b6cad75e737f1d38bb4b261bd95b291 Author: Johannes Berg <johannes@sipsolutions.net> Date: Wed Aug 26 18:13:17 2009 +0200 rfkill: relicense header file This header file is copied into userspace tools that need not be GPLv2 licensed, make that easier. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk> Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Acked-by: Iñaky Pérez-González <inaky@linux.intel.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> Acked-by: Michael Buesch <mb@bu3sch.de> Acked-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-08-26remove copyright notice from fileJohannes Berg1-2/+0
should make it clear that COPYING is supposed to govern the entire source distribution
2009-08-26add copyright noticesJohannes Berg1-0/+4
2009-08-25version 0.2v0.2Johannes Berg1-1/+1
2009-08-25sync with kernel, add GPSJohannes Berg4-33/+55
The kernel added a GPS rfkill type, and also the event size. Sync with the kernel's header file and add support for GPS.
2009-08-25add manpageJohannes Berg3-4/+41
Taken from http://tartarus.org/~ds/pkg/rfkill_0.1-4-g9429740-1.diff.gz Thanks Darren!
2009-07-23remove iteration and let the kernel do itJohannes Berg1-62/+20
2009-07-23Added support for block/unblock wireless types.Tim Gardner1-8/+58
block/unblock now accepts an index as well as a wireless type, uncluding 'all'. Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2009-07-23Added rfkill_block_all()Tim Gardner1-0/+19
Utility function to block/unblock devices by type. Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2009-07-23Added a utility function to acquire a list of events.Tim Gardner1-8/+38
Construct a list of events for use by multiple functions, such as block/unblock for specific rfkill types. Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2009-07-21bump version to 0.1v0.1Johannes Berg1-1/+1
2009-07-05check event size for version 1Johannes Berg2-2/+12
If we ever increase the event struct size, then we will need to handle multiple event sizes, so let's define the current event size and check for that so we remember to fix it up when (if ever) we need to change things.
2009-07-05use right event size for read()Johannes Berg1-16/+14
In order to be compatible with future size increases of the kernel's rfkill structure, userspace should only read as much as it expects -- the kernel will truncate the event read if necessary, which is the way we plan to have compatibility between different versions, should they ever be necessary. Thus, the userspace tool needs to use the exact event size for a read(). If the userspace tool is ever compiled with a newer kernel then it will need to be adjusted to work with older kernels, however.
2009-06-05open device read-only for list and event operationsMarcel Holtmann1-2/+2
2009-06-04comment out rfkill manpage install for nowJohannes Berg1-4/+4
2009-06-04add *~ to gitignoreJohannes Berg1-0/+1
2009-06-04add .gitignoreJohannes Berg1-0/+3
2009-06-04version script "improvement"Johannes Berg1-2/+2
2009-06-04implement basic rfkill functionalityMarcel Holtmann1-6/+214
2009-06-04update to latest rfkill.hMarcel Holtmann1-11/+16
2009-06-04fix wrong rfkill_version typeMarcel Holtmann1-1/+1
2009-05-28init rfkill basic codeJohannes Berg7-0/+501