|
From: Hernán M. G. <her...@gm...> - 2014-07-27 17:10:12
|
Hello again, I have already written here because of the same subject 5 months ago, my final year project (http://thread.gmane.org/gmane.linux.drivers.ath5k.devel/5651). I come here asking what would be the best way of understanding ath5k driver in order to get an 802.11p implementation based on that driver. Nowadays I have managed to get some of the basics about it thanks to your help and a huge amount of "printks", but regarding to the implementation issue I couldn't achieve anything. My ordered change-needs list is: - Change emiting band to 5.9GHz - Change bandwith to 10MHz (1/2 802.11p) - Set rest of parameters of 802.11p - Implement protocol stack of 802.11p Maybe is a bit naive for a list, but so far I haven't acomplished even the first item so I won't worry about the rest right now. I guess that there are two ways of doing it. First, add a new mode for P or, Second, modify A mode to get an P implementation. I'm into the first posibility. Now I'm triying to modify little by little the driver and related files in order to add a new mode beside 80211A, 80211B, ... But after all this time and the changes made I coudn't even change channel with "iw" to one of the P channels. I have added a new ieee80211_band band for 5.9HGz bands (in cfg80211.h), I have added a new ath5k_driver_mode PHY operation mode (in ath5k.h)... I know these changes won't get the thing done by their own, since I just add new elements to serverals enums, but I didn't expect them to "break" the driver. Jet, the initilization is failing from the beginning and it can't register the card. My first thought is that adding new elements to those enums could alter the offests and the access to that structures is not being done the proper way. And this make me thinks, "Wouldn't be easier just modify what is already done and trasnform A to P, instead of create a new op mode?". I guess it is, so is there anyone here anyway that could anser me that? Or is there anyone here who could give me some hints about it? Right now I would be happy just being able to set the channel to one included in the 5,9GHz band by using "iw" or "iwconfig". |