De acordo com as Leis 12.965/2014 e 13.709/2018, que regulam o uso da Internet e o tratamento de dados pessoais no Brasil, ao me inscrever na newsletter do portal DICAS-L, autorizo o envio de notificações por e-mail ou outros meios e declaro estar ciente e concordar com seus Termos de Uso e Política de Privacidade.
Colaboração: Guilherme Hakme
Data de Publicação: 01 de outubro de 2010
Gostaria de autenticar usando a sua face?
Colaboração: Guilherme Hakme
Com o kernel 2.6.35, a placa wireless não trava corretamente no devido canal em modo monitor.
Ex:
# airodump-ng -c 6 mon0
Para resolver este pequeno inconveniente, basta aplicar o seguinte patch ao kernel e recompilar o modulo.
-- net/wireless/chan.c +++ net/wireless/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; }
# cd /usr/src/linux # patch -p0 < /caminho/para/o/patch # make SUBDIRS=net/wireless modules # make modules_install # depmod -a
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Comentários