skip to main |
skip to sidebar
RSS Feeds
Coding and Computer Hardware
Coding and Computer Hardware
8:53 PM
Posted by DomiNat3
--- chan.c.orig
+++ chan.c
@@ -49,9 +49,12 @@ int cfg80211_set_freq(struct cfg80211_registered_device *rdev,
{
struct ieee80211_channel *chan;
int result;
+ struct wireless_dev *mon_dev = NULL;
- if (wdev && wdev->iftype == NL80211_IFTYPE_MONITOR)
+ if (wdev && wdev->iftype == NL80211_IFTYPE_MONITOR) {
+ mon_dev = wdev;
wdev = NULL;
+ }
if (wdev) {
ASSERT_WDEV_LOCK(wdev);
@@ -76,5 +79,8 @@ int cfg80211_set_freq(struct cfg80211_registered_device *rdev,
if (wdev)
wdev->channel = chan;
+ if (mon_dev)
+ mon_dev->channel = chan;
+
return 0;
}
sudo find / -name chan.c -printNow open a terminal and navigate to the directory where chan.c and the patch are located. Run (I had to use sudo because the owner was root as i had already edited the file as root):
sudo patch -p0 -i < watevaucalledthepatch.patch
sudo chown userhere:userhere chan.csudo chmod 777 chan.c
./scripts/driver-select ath9k
makesudo make install
sudo make unloadsudo make wlunload
sudo make btunload
sudo modprobe driverhere
4:18 PM
Posted by DomiNat3
Even as a fairly new Linux user, I always receive the comment "Why do you use Linux". A lot of my friends think it's the worst operating system in the world. "It's so hard to use","You can't do anything on it", "It doesn't support any hardware" they say. The truth is; I don't know why I use it, I just love it. The fact is, it's faster, free and 99% of the applications made for it are open source. It looks better, I find it more compatible and if you program at all you will most probably find it 10 times better than any other operating system. Don't get me wrong, I like Microsoft Operating Systems (I have never been into Macs.... Bit of a ripoff in my opinion). I still use Windows to play all my games and do all my word processing. Sure there's wine (a Windows file system and registry emulator) but i just prefer to do those things on Windows. As for browsing, I don't care what OS I'm using, they both have IM clients and they both have my two favorite browsers (Chrome and Firefox). I get annoyed when people say they hate Windows, it's not a bad OS. It's probably the most user friendly OS available. People need to stop saying it's crap.
As for the question which one is better; I have to say Linux but only because of the applications i run. If I were a pro gamer, I would use Windows. If I was a hobby programmer, I would use Linux. It's as simple as that.