(size)
| 15969 | if isinstance(result, dict): |
| 15970 | result['ap_teardown'] = ap_teardown |
| 15971 | return jsonify(result) |
| 15972 | except Exception as e: |
| 15973 | logger.error(f"Wardriving stop error: {e}") |
| 15974 | return jsonify({'error': str(e)}), 500 |
| 15975 | |
| 15976 | @app.route('/api/wardriving/networks') |
| 15977 | def wardriving_networks(): |
| 15978 | """Get discovered networks from current/specified session.""" |
| 15979 | try: |