Handle cases where lorcon cant change the txrate (zdw driver)
git-svn-id: file:///home/svn/framework3/trunk@5766 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
4eac2506b8
commit
7d98de2fed
|
@ -80,8 +80,13 @@ module Exploit::Lorcon
|
|||
# Configure the card for reliable injection
|
||||
self.wifi.fmode = "INJECT"
|
||||
self.wifi.channel = (datastore['CHANNEL'] || 11).to_i
|
||||
self.wifi.txrate = datastore['TXRATE'].to_i if datastore['TXRATE']
|
||||
self.wifi.modulation = datastore['TXMOD']
|
||||
|
||||
begin
|
||||
self.wifi.txrate = datastore['TXRATE'].to_i if datastore['TXRATE']
|
||||
rescue ::Exception => e
|
||||
print_status("Warning: Could not set TXRATE: #{e.class} #{e}")
|
||||
end
|
||||
|
||||
self.wifi
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue