Handle cases where lorcon cant change the txrate (zdw driver)

git-svn-id: file:///home/svn/framework3/trunk@5766 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-10-17 17:35:35 +00:00
parent 4eac2506b8
commit 7d98de2fed
1 changed files with 6 additions and 1 deletions

View File

@ -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