Posts

Showing posts with the label kernel

configure network device with wireless extensions

configure network device with wireless extensions I need to configure a network device in C on a linux host for an application. I read up on netlink, libnl and nl80211 which goes through cfg80211 and mac80211. I found out later that the driver for the device I am using does not support the mac80211 interface so I am unable to use netlink library to configure the device. My only option left is through wireless extensions using ioctl. So I have been reading the source code for iwconfig (iw uses netlink while iwconfig uses wext). So for example, say I am trying to set the channel on a 80211 adapter. The wireless extension ioctl command is SIOCSIWFREQ (as per iwconfig and my device's driver). By what I have read, you open up a socket and use ioctl with a 'ifreq' structure to configure the network adapter (see 'man netdevice'). The thing is, iwconfigure defines its own 'ifreq' structure called 'iwreq' which looks totally different (see iwconfig source, th...

Changing Kernel Level Settings For Android [Customized OS]

Changing Kernel Level Settings For Android [Customized OS] I am a Computer Science student and an Android Developer ( Creating Apps Only ). Recently we've been given a task of creating a customized Android OS ( Beginner Stuff Only ) My part focuses on two jobs. 1: Change the startup animation to some new designed one based on University. 2: Add a button in the system icons for mic control. The logic must enable/ disable mic at the kernel/driver level and not at application level. Part 1 is easy and it won't take time, but how am I supposed to tweak settings at Kernel Level? I have no experience whatsoever. Kindly guide me what do I need to do? What software and what skills do I need? Any sort of Tutorial or guide or something? Thank you ! By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the...