Skip to content

Commit

Permalink
Merge pull request #863 from Wireless-Innovation-Forum/reda_fix_max_e…
Browse files Browse the repository at this point in the history
…irp_ref_model_dump_cbsd_grant_record

# small update of reference model to use "requestedOperationParam" of grant records in dump
  • Loading branch information
kate-harrison authored Dec 5, 2018
2 parents 8ce2bf7 + eedca5f commit b7af4fa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/harness/reference_models/common/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,14 @@ def constructCbsdGrantInfo(reg_request, grant_request, is_managing_sas=True):

max_eirp, low_frequency, high_frequency = None, None, None
if grant_request is not None:
max_eirp = grant_request['operationParam']['maxEirp']
low_frequency = grant_request['operationParam']['operationFrequencyRange']['lowFrequency']
high_frequency = grant_request['operationParam']['operationFrequencyRange']['highFrequency']
if 'requestedOperationParam' in grant_request:
max_eirp = grant_request['requestedOperationParam']['maxEirp']
low_frequency = grant_request['requestedOperationParam']['operationFrequencyRange']['lowFrequency']
high_frequency = grant_request['requestedOperationParam']['operationFrequencyRange']['highFrequency']
else:
max_eirp = grant_request['operationParam']['maxEirp']
low_frequency = grant_request['operationParam']['operationFrequencyRange']['lowFrequency']
high_frequency = grant_request['operationParam']['operationFrequencyRange']['highFrequency']
return CbsdGrantInfo(
# Get information from the registration
latitude=lat_cbsd,
Expand Down

0 comments on commit b7af4fa

Please sign in to comment.